public ActionResult Post([FromBody] EmprestimoInputModel emprestimo) { var result = _emprestimoService.CriarEmprestimo(emprestimo); return(new CreatedAtRouteResult("GetEmprestimoDetails", new { id = result.Id }, result)); }
public ActionResult Post([FromBody] EmprestimoInputModel emprestimo) { var result = _emprestimoService.CriarEmprestimo(emprestimo); return(new CreatedAtRouteResult("GetEmprestimoDetails", new { id = result.Id }, result)); }