public async Task <IActionResult> Put(int id, ResponsibleArea model) { model.Id = id; await _genericRepository.UpdateAsync(model); return(NoContent()); }
public async Task <ActionResult <ResponsibleArea> > Post(ResponsibleArea model) { var entity = await _genericRepository.CreateAsync(model); return(new CreatedAtRouteResult("GetResponsibleArea", new { id = entity.Id }, entity)); }