public SiteManagement(BUser user) : base(user) { if (this.logger == null) { this.logger = log4net.LogManager.GetLogger(typeof(ResourceManagement)); } }
public OrderManagement(BUser user) : base(user) { if (this.logger == null) { this.logger = log4net.LogManager.GetLogger(typeof(OrderManagement)); } }
public UserManagement(BUser user):base(user) { this.logger = log4net.LogManager.GetLogger(this.GetType()); }
public PermissionManagement(BUser user) : base(user) { }
public CustomerManagement(BUser user) : base(user) { }
public BaseManagement(BUser user) { this.CurrentLoginUser = user; this.InitializeLoggger(); }
public BUser GetUserInfo(string email) { if (string.IsNullOrEmpty(email)) { return null; } BUser user = null; using (chargebitEntities db = new chargebitEntities()) { user = new BUser(); user.User = (from u in db.Users where u.Email == email select u).FirstOrDefault<Users>(); Admin_Users au = (from ausr in db.Admin_Users where ausr.User_Id == user.User.Id select ausr).FirstOrDefault<Admin_Users>(); if (au != null) { user.IsSuperAdmin = au.IsSuperAdmin; user.IsWebMaster = au.IsWebMaster; user.IsAdmin = true; } if (!user.IsSuperAdmin) { user.Permission = PermissionManagement.GetUserPermissions(user.User.Id); } else { user.Permission = new Permissions(); System.Reflection.FieldInfo[] fields = typeof(Permissions).GetFields(); foreach (System.Reflection.FieldInfo field in fields) { field.SetValue(user.Permission, 1); } } } return user; }
public AgentManagement(BUser user) : base(user) { }
public AgentAdminMenagement(BUser user) : base(user) { }
public PaymentManagement(BUser user) : base(user) { }
public AdministratorManagement(BUser user) : base(user) { }