public HttpResponseMessage Put([FromBody] Mensaje apimsj) { try { bool operacion = FabricaLogica.GetControladorMensajes().responderMensaje(apimsj); return(Request.CreateResponse(HttpStatusCode.OK, apimsj)); } catch (Exception ex) { return(Request.CreateErrorResponse(HttpStatusCode.BadRequest, ex)); } }
public Mensaje buscarMensaje(int id) { Mensaje apimsj = FabricaLogica.GetControladorMensajes().buscarMensaje(id); return(apimsj); }
public List <Mensaje> listarMensajesRespondidos(int cedula) { List <Mensaje> apimsj = FabricaLogica.GetControladorMensajes().listarMensajesRespondidos(cedula); return(apimsj); }
public List <Mensaje> listarMensajesSinResponder() { List <Mensaje> apimsj = FabricaLogica.GetControladorMensajes().listarMensajesSinResponder(); return(apimsj); }