public IHttpActionResult Show([FromBody] TokenModel token) { bool valido = false; valido = TokenData.ValidarToken(token.Token); if (valido == true) { string cad = EnrollmentData.Enrollment(token.Token); var consulta = PerfilData.Mostrar(cad); return(Ok(consulta)); } return(NotFound()); }
public IHttpActionResult Days([FromBody] TokenModel token) { bool valido = false; valido = TokenData.ValidarToken(token.Token); Comps dates = new Comps(); if (valido == true) { //EnrollmentData Mat = new EnrollmentData(); string cad = EnrollmentData.Enrollment(token.Token); var consulta = LessonWeekData.Days(cad); return(Ok(consulta)); } return(NotFound()); }