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(); }
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(); }
public CMSEmployeesController() { _factory = new CMSEmployeeFactory(); _facKeyword = new CMSKeywordFactory(); ViewBag.IsAdmin = CurrentUser.IsSuperAdmin; }
public CMSEmployeesController() { _factory = new CMSEmployeeFactory(); ViewBag.Role = GetListRoleSelectItem(); }
public AboutController() { _facCate = new CMSCategoriesFactory(); _facEmp = new CMSEmployeeFactory(); _facDis = new CMSDiscountFactory(); }
public AboutController() { _facEmp = new CMSEmployeeFactory(); }