public async Task <IActionResult> Put([FromBody] UsuarioDtoSpecialized dto) { var result = new HttpResult <UsuarioDto>(this._logger); try { var returnModel = await this._app.SavePartial(dto); return(result.ReturnCustomResponse(this._app, returnModel)); } catch (Exception ex) { return(result.ReturnCustomException(ex, "Target.Pendencias - Usuario", dto)); } }
public async Task <IActionResult> Post([FromBody] UsuarioDtoSpecialized dto) { var result = new HttpResult <UsuarioDto>(this._logger); try { var returnModel = await this._app.Save(dto); return(result.ReturnCustomResponse(this._app, returnModel)); } catch (Exception ex) { var responseEx = result.ReturnCustomException(ex, "Seed - Usuario", dto, new ErrorMapCustom()); return(responseEx); } }