private bool CreateUserRole() { objRole = new Role(); objRoleBiz = new RoleBiz(); objRole.RoleName = txtRoleName.Text.Trim(); objRole.UserId = Convert.ToInt16(Session["UserId"].ToString()); MessageBox(objRoleBiz.CreateRole(objRole)); return(true); }
private bool CreateUserRole() { objRole = new Role(); objRoleBiz = new RoleBiz(); objRole.RoleName = txtRoleName.Text.Trim(); objRole.UserId = Convert.ToInt16(Session["UserId"].ToString()); MessageBox(objRoleBiz.CreateRole(objRole)); return(true); }