public IHttpActionResult PostLaboratoriosHorario(Horario horario) { Horario horarioR = horarios.PostHorario(horario); if (!String.IsNullOrEmpty(horarioR.mensajeError)) { return(Content(HttpStatusCode.NotFound, horarioR.mensajeError)); } else { return(Content(HttpStatusCode.OK, horarioR)); } }