예제 #1
0
        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());
        }
예제 #2
0
        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());
        }