Beispiel #1
0
 public HttpResponseMessage Actualizar([FromBody] Maestro persona)
 {
     try
     {
         var personaCreada = PersonaDAO.Actualizar(persona);
         return(Request.CreateResponse(HttpStatusCode.OK, personaCreada));
     }
     catch (Exception ex)
     {
         return(Request.CreateResponse(HttpStatusCode.InternalServerError,
                                       new
         {
             Mensaje = ex.Message
         }));
     }
 }