public ActionResult Clients() { var mng = new CRMManager(); ViewBag.statusClientName = mng.GetSQLData<crm_clientStatuses>("GetCRMClientStatuses"); ViewBag.sourceClientName = mng.GetSQLData<crm_sources>("GetCRMSources"); return View(); }
// GET: CRM public ActionResult Index() { //var res = Membership.GetUser(name).GetPassword(); var mng = new CRMManager(); /* * Выборка через EF * ViewBag.statusClientName = mng.GetClientStatuses(); * ViewBag.sourceClientName = mng.GetClientSources(); */ ViewBag.statusClientName = mng.GetSQLData<crm_clientStatuses>("GetCRMClientStatuses"); ViewBag.sourceClientName = mng.GetSQLData<crm_sources>("GetCRMSources"); return View(); }