示例#1
0
        public JsonList <LevelGroupModel> GetAll()
        {
            var levelGroups      = _service.GetAllLevelGroups();
            var levelGroupModels = levelGroups.ToList().ToModelList <LevelGroup, LevelGroupModel>();

            return(new JsonList <LevelGroupModel>()
            {
                TotalItems = levelGroupModels.Count,
                Data = levelGroupModels
            });
        }