コード例 #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));
        }
コード例 #2
0
        public ActionResult OfficeTypes()
        {
            if (!ViewBag.AllowView)
            {
                ViewBag.Error = "You are not Authorize to use this Page";
                return(PartialView("_partialviewNotFound"));
            }


            return(View(_officeTypeService.GetOfficeTypes()));
        }