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