public IActionResult Update(int id, [FromBody] UpdateAuxiliar model) { try { _auxiliarService.Update(id, model); return(Ok()); } catch { return(BadRequest(new { message = "Erro ao atualizar usuario!" })); } }
public ModelAuxiliarResponse Update(int id, UpdateAuxiliar model) { var auxiliar = getAuxiliar(id); return(_mappe.Map <ModelAuxiliarResponse>(auxiliar)); }