public bool Put(int id, [FromBody] Cat value) { return(catRepo.Update(value)); }
public async Task <IActionResult> Put([FromBody] Cat entity) { await _repository.Update(entity); return(Ok()); }