Пример #1
0
        // GET: ManageUser
        public ActionResult Index()
        {
            var userlist = new List <Spgetusers_Result>();

            try
            {
                userlist         = context.Spgetusers().ToList();
                ViewData["City"] = context.SPgetProspectinglists().Select(xx => new SelectListItem {
                    Value = xx.listid.ToString(), Text = xx.listname + " /User Count" + xx.Cnt
                }).ToList();
                if (TempData["Message"] != null)
                {
                    ViewBag.message = TempData["Message"];
                }
            }
            catch (Exception ex)
            {
                cm.ErrorExceptionLogingByService(ex.ToString(), "ManageUser" + ":" + new StackTrace().GetFrame(0).GetMethod().Name, "Index", "NA", "NA", "NA", "WEB");
            }
            return(View(userlist));
        }