public Page<AdminInfo> GetAdminList(string adminName,string adminType,List<int> regionList,int pageNum ) { AdminBLL adminBLL = new AdminBLL(); Page<AdminInfo> adminPageInfo = new Page<AdminInfo>(); adminPageInfo = adminBLL.GetAdminInfoList(adminName, adminType, regionList, pageNum); return adminPageInfo; }
public AdminInfo GetAdminById(int adminId) { if(adminId==-1){ adminId=( System.Web.HttpContext.Current.Session["ADMIN"] as AdminInfo).AdminId; } AdminBLL adminBLL=new AdminBLL(); return adminBLL.GetAdminById(adminId); }
public object CheckLogonInfo(string passport, string password, string imgvode) { string message = string.Empty; string firstUrl = string.Empty; List<string> resultList = new List<string>(); if (Session["CheckCode"] == null) { return new { state = 0, msg = "验证码过期", url = firstUrl }; } else if (imgvode.ToLower() != Session["CheckCode"].ToString().ToLower()) { return new { state = 0, msg = "验证码输入错误", url = firstUrl }; } if (Utils.FilterSql(passport) && Utils.FilterSql(password)) { try { AdminBLL adminBLL = new AdminBLL(); resultList = adminBLL.UserLogin(passport,password); if (resultList.Count > 0) { if (Session["ADMIN"] != null) { AdminInfo currentUser = Session["ADMIN"] as AdminInfo; } message = resultList[1]; } } catch (Exception e) { } } else { return new { state = 0, msg = "输入包含非法字符", url = firstUrl }; } return new { state = 0, msg = message, url = firstUrl }; }
public bool DeleteAdminInfo(int memberId) { AdminBLL adminBLL = new AdminBLL(); return adminBLL.DeleteAdminInfo(memberId); }
public object UpdateAdmin(AdminInfo adminInfo, List<RegionInfo> manageRegionList, List<RegionInfo> regionList) { AdminBLL adminBLL = new AdminBLL(); return adminBLL.UpdateAdminInfo(adminInfo, manageRegionList, regionList); }