예제 #1
0
 public ActionResult DeletarConsequencia(int id)
 {
     return(Ok(ConsequenciaService.Deletar(id)));
 }
예제 #2
0
        public ActionResult <ConsequenciaResponse> Editar(int id, [FromBody] ConsequenciaRequest consequenciaRequest)
        {
            Consequencia consequencia = _mapperRequest.Map <Consequencia>(consequenciaRequest);

            return(Ok(_mapperResponse.Map <ConsequenciaResponse>(ConsequenciaService.Editar(id, consequencia))));
        }
예제 #3
0
 public ActionResult <ConsequenciaResponse> Obter(int id)
 {
     return(Ok(_mapperResponse.Map <ConsequenciaResponse>(ConsequenciaService.Obter(id))));
 }
예제 #4
0
        public ActionResult <ConsequenciaResponse> Salvar([FromBody] ConsequenciaRequest consequenciaRequest)
        {
            Consequencia consequencia = _mapperRequest.Map <Consequencia>(consequenciaRequest);

            return(Ok(_mapperResponse.Map <ConsequenciaResponse>(ConsequenciaService.Salvar(consequencia))));
        }
예제 #5
0
 public IActionResult Listar()
 {
     return(Ok(_mapperResponse.Map <List <ConsequenciaResponse> >(ConsequenciaService.Listar())));
 }