public IActionResult Delete([FromBody] ContractFileRow fileRow) { var model = _repository.Find(fileRow); if (model == null) { throw new InvalidOperationException(); } _repository.Delete(model.Id); return(Ok()); }
public ContractFileRow Save([FromBody] ContractFileRow fileRow) { ModelState.Validate(); _repository.Insert(fileRow); return(fileRow); }