public CMSOrdersController() { _fac = new CMSOrderFactory(); _facPro = new CMSProductFactory(); _facCus = new CMSCustomersFactory(); _facDiscount = new CMSDiscountFactory(); _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> GetListCustomer() { var _factory = new CMSCustomersFactory(); List <SelectListItem> data = null; var listCus = _factory.GetList(); if (listCus != null) { data = listCus.Select(x => new SelectListItem { Value = x.ID, Text = x.Name, }).ToList(); } return(data); }
public BasesController() { facC = new CMSCustomersFactory(); try { if (CurrentUser != null && CurrentUser.UserId != null) { var data = facC.GetDetail(CurrentUser.UserId); CurrentUser.TotalCredits = data != null ? data.TotalCredit : 0; } } catch (Exception) { throw; } }
public CMSCustomersController() { _factory = new CMSCustomersFactory(); }
public ChangePasswordController() { fac = new CMSCustomersFactory(); }
public RegisterController() { fac = new CMSCustomersFactory(); }
public VerifyCodeController() { fac = new CMSCustomersFactory(); }
public LoginController() { fac = new CMSCustomersFactory(); }
public CMSCustomersController() { _factory = new CMSCustomersFactory(); _facOrder = new CMSOrderFactory(); }
public ForgotPasswordController() { fac = new CMSCustomersFactory(); }