public async Task <bool> Delete(EVoucherContent EVoucherContent)
        {
            EVoucherContentDAO EVoucherContentDAO = await DataContext.EVoucherContent.Where(x => x.Id == EVoucherContent.Id).FirstOrDefaultAsync();

            DataContext.EVoucherContent.Remove(EVoucherContentDAO);
            await DataContext.SaveChangesAsync();

            return(true);
        }
        public async Task <bool> Update(EVoucherContent EVoucherContent)
        {
            EVoucherContentDAO EVoucherContentDAO = DataContext.EVoucherContent.Where(x => x.Id == EVoucherContent.Id).FirstOrDefault();

            EVoucherContentDAO.Id           = EVoucherContent.Id;
            EVoucherContentDAO.EVourcherId  = EVoucherContent.EVourcherId;
            EVoucherContentDAO.UsedCode     = EVoucherContent.UsedCode;
            EVoucherContentDAO.MerchantCode = EVoucherContent.MerchantCode;
            EVoucherContentDAO.UsedDate     = EVoucherContent.UsedDate;
            await DataContext.SaveChangesAsync();

            return(true);
        }
        public async Task <bool> Create(EVoucherContent EVoucherContent)
        {
            EVoucherContentDAO EVoucherContentDAO = new EVoucherContentDAO();

            EVoucherContentDAO.Id           = EVoucherContent.Id;
            EVoucherContentDAO.EVourcherId  = EVoucherContent.EVourcherId;
            EVoucherContentDAO.UsedCode     = EVoucherContent.UsedCode;
            EVoucherContentDAO.MerchantCode = EVoucherContent.MerchantCode;
            EVoucherContentDAO.UsedDate     = EVoucherContent.UsedDate;

            await DataContext.EVoucherContent.AddAsync(EVoucherContentDAO);

            await DataContext.SaveChangesAsync();

            EVoucherContent.Id = EVoucherContentDAO.Id;
            return(true);
        }