Пример #1
0
        public ActionResult AdminIndex()
        {
            UserAdminIndexModel userModel = new UserAdminIndexModel();

            userModel.Admins = new tUserModelCustom {
                IDRole   = (int)Enums.enmRoles.Admin,
                UserList =
                    _userRepository.GetListByIDRole((int)Enums.enmRoles.Admin)
            };
            userModel.Partners = new tUserModelCustom {
                IDRole   = (int)Enums.enmRoles.Partner,
                UserList =
                    _userRepository.GetListByIDRole((int)Enums.enmRoles.Partner)
            };
            userModel.Users = new tUserModelCustom {
                IDRole   = (int)Enums.enmRoles.User,
                UserList =
                    _userRepository.GetListByIDRole((int)Enums.enmRoles.User)
            };
            userModel.Moderators = new tUserModelCustom {
                IDRole   = (int)Enums.enmRoles.Moderator,
                UserList =
                    _userRepository.GetListByIDRole((int)Enums.enmRoles.Moderator)
            };
            return(View(userModel));
        }
Пример #2
0
 public ActionResult Create()
 {
     ViewBag.userData       = _userRepository.GetListByIDRole((int)Enums.enmRoles.Partner);
     ViewBag.groupData      = _groupRepository.All;
     ViewBag.categoryData   = _categoryRepository.GetListByIDCategoryType((int)Enums.enmCategoryTypes.DealCategory);
     ViewBag.possibleCities = _categoryRepository.GetListByIDCategoryType((int)Enums.enmCategoryTypes.City);
     return(View());
 }
Пример #3
0
        public ActionResult Create()
        {
            List <tUser> userData = _userRepository.GetListByIDRole((int)Enums.enmRoles.Partner);

            ViewBag.userData = userData;
            return(View());
        }