Beispiel #1
0
        //
        // GET: /Admin/ManageUser/
        public ActionResult Index()
        {
            if (smartData.Common.SessionManager.LoggedInUser.UserType == 3)
            {
                List <smIndustry> newlist = _manageContentApi.GetCategories();
                ViewBag.IndustryName = new SelectList(newlist, "IndustryId", "IndustryName");
            }
            else
            {
                smIndustry newlist = _manageContentService.GetIndustryById(smartData.Common.SessionManager.LoggedInUser.IndustryId);
                ViewBag.IndustryId   = newlist.IndustryId.ToString();
                ViewBag.IndustryName = newlist.IndustryName.ToString();
            }

            return(View());
        }
Beispiel #2
0
 public smIndustry GetIndustryById(int id)
 {
     return(_manageContentService.GetIndustryById(id));
 }