public ActionResult Docs() { var mng = new DocsManager(); var finMng = new FinanceManager(); ViewBag.DocTypes = mng.GetDocTypes(); ViewBag.DocStatuses = mng.GetDocStatuses(); ViewBag.FinProjects = finMng.GetProjects().OrderBy(x => x.name).ToList(); ViewBag.FinContragents = finMng.GetFinContragents().OrderBy(x => x.name).ToList(); return(View()); }
// GET: Finances public ActionResult Index() { var mng = new FinanceManager(); var mng_hr = new HRManager(); var mng_crm = new CRMManager(); ViewBag.contragentName = mng.GetFinContragents(); ViewBag.typeName = mng.GetFinTypes(); ViewBag.projectName = mng.GetProjects(); ViewBag.statusName = mng.GetFinStatuses(); ViewBag.hrName = mng_hr.GetHumans(); ViewBag.crmName = mng_crm.GetClients(); return(View()); }