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