using GB5Shared.DTO.Framework.Criteria; using GB5Shared.DTO.Framework.Login; using GB5Shared.QueryExecutor; using MMDAL.DTO.CashDiscount; using MMDAL.Query.CashDiscount; using Newtonsoft.Json; using System; using System.Threading.Tasks; namespace MMDAL.CustomCode.CashDiscount { public class CashDiscountDAL : ICashDiscountDAL { private readonly IQueryExecutor _QueryExecutor; public CashDiscountDAL(IQueryExecutor QueryExecutor) { _QueryExecutor = QueryExecutor; } public async Task GetSelectListCashDiscount(CriteriaDTO CriteriaDTO, LoginDTO LoginDTO) { try { string SQL = CashDiscountQB.GET_SELECTLIST_CASHDISCOUNT; var Result = await _QueryExecutor.QueryAsync(LoginDTO, SQL, null!); string Json = JsonConvert.SerializeObject(Result); return Json; } catch (Exception) { throw; } } } }