Example #1
0
 public CMSOrdersController()
 {
     _fac         = new CMSOrderFactory();
     _facPro      = new CMSProductFactory();
     _facCus      = new CMSCustomersFactory();
     _facDiscount = new CMSDiscountFactory();
     _facEmp      = new CMSEmployeeFactory();
 }
 public HomeController()
 {
     _fac     = new CMSProductFactory();
     _facCom  = new CMSCompaniesFactory();
     _facCate = new CMSCategoriesFactory();
     _facNews = new CMSNewsFactory();
     _facEmp  = new CMSEmployeeFactory();
 }
 public ReservationController()
 {
     _fac                 = new CMSReservationFactory();
     _facProduct          = new CMSProductFactory();
     _facEmp              = new CMSEmployeeFactory();
     _facCus              = new CMSCustomersFactory();
     ViewBag.ListFromTime = GetListFromTime();
     ViewBag.ListToTime   = GetListToTime();
 }
Example #4
0
        public List <SelectListItem> GetListEmployeeSelectItem()
        {
            var _factory = new CMSEmployeeFactory();
            List <SelectListItem> data = null;

            var listEmp = _factory.GetList();

            if (listEmp != null)
            {
                data = listEmp.Select(x => new SelectListItem
                {
                    Value = x.Id,
                    Text  = x.Name,
                }).ToList();
            }
            return(data);
        }
 public CMSEmployeesController()
 {
     _factory = new CMSEmployeeFactory();
 }
Example #6
0
 public CMSEmployeesController()
 {
     _factory        = new CMSEmployeeFactory();
     _facKeyword     = new CMSKeywordFactory();
     ViewBag.IsAdmin = CurrentUser.IsSuperAdmin;
 }
 public CMSEmployeesController()
 {
     _factory     = new CMSEmployeeFactory();
     ViewBag.Role = GetListRoleSelectItem();
 }
Example #8
0
 public AboutController()
 {
     _facCate = new CMSCategoriesFactory();
     _facEmp  = new CMSEmployeeFactory();
     _facDis  = new CMSDiscountFactory();
 }
Example #9
0
 public AboutController()
 {
     _facEmp = new CMSEmployeeFactory();
 }