public virtual IActionResult AddCarteira([FromBody] CarteiraItem body) { var rspStc = Services.CarteiraService.Add(body); CarteiraItemresponse objResp = new CarteiraItemresponse() { Idcarteira = body.Idcarteira }; return(StatusCode(rspStc, objResp)); }
public virtual IActionResult CarteiraIdcarteiraPut([FromRoute][Required] int?idcarteira, [FromBody] CarteiraItem body) { var rspStc = Services.CarteiraService.Update(idcarteira, body); CarteiraItemresponse objResp = new CarteiraItemresponse() { Idcarteira = body.Idcarteira }; return(StatusCode(rspStc, objResp)); }