Beispiel #1
0
        public IHttpActionResult GetUserLevel(int id)
        {
            UserLevel userLevel = UserLevelHandler.GetOneUserLevel(id, db);

            if (userLevel == null)
            {
                return(NotFound());
            }
            return(Ok(userLevel));
        }
Beispiel #2
0
        public IHttpActionResult GetUsers()
        {
            Dictionary <int, UserLevel> userLevels = UserLevelHandler.GetAllUserLevels(db);

            if (userLevels.Count == 0)
            {
                return(NotFound());
            }
            return(Ok(userLevels));
        }