Ejemplo n.º 1
0
 public object Post([FromBody] ProfessionViewModel professionViewModel)
 {
     try
     {
         var result = _supervisor.AddProfession(professionViewModel);
         return(result);
     }
     catch (Exception ex)
     {
         _logger.LogError(ex, "Exception: ");
         return(StatusCode(500, ex));
     }
 }