Beispiel #1
0
        private async Task <long> SaveDriverAccount(SafeDTO entity)
        {
            DriverAccountDTO driverAccount = new DriverAccountDTO()
            {
                SafeId        = entity.Id,
                PaidDate      = entity.Date,
                PaidUp        = entity.Outcoming,
                RecieptNumber = entity.RecieptNumber,
                DriverId      = entity.AccountId
            };

            return(await _driverAccountDSL.Save(driverAccount));
        }
 public async Task <long> Save(DriverAccountDTO entity)
 {
     return(await _driverAccountDAL.Save(_mapper.Map <DriverAccount>(entity)));
 }
 public async Task <IActionResult> Save(DriverAccountDTO model) => Ok(await _driverAccountDSL.Save(model));