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));
public async Task <long> Save(ReaperAccountDTO entity) { return(await _reaperAccountDAL.Save(_mapper.Map <ReaperAccount>(entity))); }