示例#1
0
 public IActionResult Atualizar([FromBody] Vaga item)
 {
     try
     {
         _service.Atualizar <VagaValidator>(item);
         return(new ObjectResult(item));
     }
     catch (Exception ex)
     {
         return(BadRequest(ex));
     }
 }
示例#2
0
 public bool Atualizar(VagaAlteracaoVM entity) =>
 _service.Atualizar(MapperUtils.Map <VagaAlteracaoVM, Vaga>(entity));