Exemple #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 <IActionResult> Save(DriverAccountDTO model) => Ok(await _driverAccountDSL.Save(model));