public async Task Put([FromBody] ReconciliationFormDto form) { if (!string.IsNullOrWhiteSpace(form.Id)) { await _reconciliationLogicService.EditAsync(form); } else { await Post(form); } }
public async Task EditAsync(ReconciliationFormDto model) { if (!string.IsNullOrWhiteSpace(model.Id)) { await _reconciliationLogicService.EditAsync(model); } else { await CreateAsync(model); } }