Пример #1
0
        public ActionResult BranchCreate()
        {
            //if (!ViewBag.AllowCreate)
            //{
            //    ViewBag.Error = "You are not Authorize to use this Page";
            //    return PartialView("_partialviewNotFound");
            //}

            ViewBag.officeList     = _officeService.GetOfficeData();
            ViewBag.officeTypeList = _officeTypeService.GetOfficeTypes();

            OfficeDTOs officeData = new OfficeDTOs();

            officeData.EmployeeList = _officeService.GetEmployeeList();
            officeData.RemoteList   = _officeService.GetRemoteList();
            return(View(officeData));
        }