public IHttpActionResult updateData([FromBody] ModelUtilizatori usr)
        {
            UserServicies us = new UserServicies();

            us.updateData(usr);
            return(Ok());
        }
        public IHttpActionResult userLogOut([FromUri] int idUtilizator)
        {
            UserServicies us = new UserServicies();

            us.checkIfConnected(idUtilizator);
            return(Ok());
        }
        public IHttpActionResult calculeazaVenitPerStudent([FromUri]  int idUtilizator)
        {
            UserServicies us    = new UserServicies();
            int           count = 0;

            count = us.calculeazavenitStudent(idUtilizator);

            return(Ok(count));
        }
        public IHttpActionResult countAccounts([FromUri] int idUtilizator)
        {
            UserServicies us    = new UserServicies();
            int           count = 0;

            count = us.countPassedExamByStudentId(idUtilizator);

            return(Ok(count));
        }
 public IHttpActionResult getStudentGradeByIdOfUser([FromUri] int idUtilizator)
 {
     return(Json(UserServicies.getStudentGradeByIdOfUser(idUtilizator)));
 }
 public IHttpActionResult getClassMates([FromUri]  int idSpecializare, int anStudiu)
 {
     return(Json(UserServicies.getListOfStudentClassById(idSpecializare, anStudiu)));
 }
 public IHttpActionResult getExamListByIdOfTeacher([FromUri] int idUtilizator, int idSpecializare, int anStudiu)
 {
     return(Json(UserServicies.getExamListOfUserById(idUtilizator, idSpecializare, anStudiu)));
 }
        public IHttpActionResult getStudentDetails([FromUri] int idUtilizator)
        {
            UserServicies us = new UserServicies();

            return(Json(us.getStudentDetails(idUtilizator)));
        }
        public IHttpActionResult getAllUserInformation([FromUri] int idUtilizator)
        {
            UserServicies us = new UserServicies();

            return(Json(us.getAllUserInformation(idUtilizator)));
        }
 public IHttpActionResult userLogin(string email, string pass)
 {
     return(Ok(UserServicies.userLogin(email, pass)));
 }
 public IHttpActionResult procentajNota([FromUri] int idUtilizator)
 {
     return(Json(UserServicies.procentajNote(idUtilizator)));
 }