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 ShowUser() { Credenciales cre = new Credenciales(); string uss = cre.getToken(); bool valido = false; valido = TokenData.ValidarToken(uss); if (valido == true) { string cad = EnrollmentData.UserAdmin(uss); var consulta = AdminData.MostrarUser(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()); }