// // 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()); }
public smIndustry GetIndustryById(int id) { return(_manageContentService.GetIndustryById(id)); }