Exemplo n.º 1
0
        private async Task <long> SaveReaperAccount(SafeDTO entity)
        {
            ReaperAccountDTO reaperAccount = new ReaperAccountDTO()
            {
                SafeId        = entity.Id,
                PaidDate      = entity.Date,
                PaidUp        = entity.Outcoming,
                RecieptNumber = entity.RecieptNumber,
                ReaperId      = entity.AccountId
            };

            return(await _reaperAccountDSL.Save(reaperAccount));
        }
 public async Task <IActionResult> Save(ReaperAccountDTO model) => Ok(await _reaperAccountDSL.Save(model));
Exemplo n.º 3
0
 public async Task <long> Save(ReaperAccountDTO entity)
 {
     return(await _reaperAccountDAL.Save(_mapper.Map <ReaperAccount>(entity)));
 }