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