Beispiel #1
0
        private async Task <long> SaveFarmAccount(SafeDTO entity)
        {
            FarmAccountDTO farmAccount = new FarmAccountDTO()
            {
                SafeId        = entity.Id,
                PaidDate      = entity.Date,
                PaidUp        = entity.Outcoming,
                RecieptNumber = entity.RecieptNumber,
                FarmId        = entity.AccountId
            };

            return(await _farmAccountDSL.Save(farmAccount));
        }
 public async Task <IActionResult> Save(FarmAccountDTO model) => Ok(await _farmAccountDSL.Save(model));