Beispiel #1
0
        public ActionResult Details(int?id)
        {
            if (id == null)
            {
                id = 0;
            }
            tUser userData = _userRepository.Find((int)id);

            ViewBag.DealsByPartner = _dealRepository.GetListByIDPartner((int)id);
            return(View(userData));
        }
        public ActionResult Edit(int id)
        {
            List <tRole>     roleData            = _roleRepository.All.ToList();
            List <tCategory> partnerCategoryData = _categoryRepository.GetListByIDCategoryType((int)Enums.enmCategoryTypes.PartnersCategory);
            List <tCategory> cityData            = _categoryRepository.GetListByIDCategoryType((int)Enums.enmCategoryTypes.City);

            ViewBag.roleData     = roleData;
            ViewBag.categoryData = partnerCategoryData;
            ViewBag.cityData     = cityData;
            tUser currentUser = _userRepository.Find(id);

            return(View(currentUser));
        }