// GET: ProspectListsAdmin public ActionResult Index(string listid = "") { var ProspectList = new List <SPGetProspectlist_Result>(); try { if (TempData["Message"] != null) { ViewBag.message = TempData["Message"]; } ProspectList = context.SPGetProspectlist().ToList(); } catch (Exception ex) { cm.ErrorExceptionLogingByService(ex.ToString(), "ProspectListsAdmin" + ":" + new StackTrace().GetFrame(0).GetMethod().Name, "Index", "NA", "NA", "NA", "WEB"); } if (listid != "") { ViewBag.listid = listid; } return(View(ProspectList)); }