public Boolean DoAddServer() { if (Session[Keys.SESSION_ADMIN_INFO] == null) { return(false); } else { Master master = Session[Keys.SESSION_ADMIN_INFO] as Master; if (rcm.GetRoleCompetence(master.RoleId, 11242)) { GameServer gs = new GameServer(); gs.GameId = int.Parse(Request["GameId"]); gs.ServerNo = Request["ServerNo"]; gs.QuFu = Request["QuFu"]; gs.Name = Request["ServerName"]; gs.Line = Request["Line"]; gs.State = int.Parse(Request["State"]); gs.StartTime = DateTime.Parse(Request["StartTime"]); gs.Sort_Id = int.Parse(Request["Sort_Id"]); gs.Img = Request["Img"]; gs.ServerDesc = Request["ServerDesc"]; return(sm.AddServer(gs)); } else { return(false); } } }