private bool UnAssignUserRoleAndMenu() { GridViewRow row = gvDisplayUserInfo.SelectedRow; objRole = new Role(); objRoleBiz = new RoleBiz(); objRole.UserId = Convert.ToInt16(gvDisplayUserInfo.DataKeys[row.RowIndex].Values[0].ToString()); objRole.RoleId = Convert.ToByte(ddlUserRoleList.SelectedValue); objRole.UpdatedBy = Convert.ToInt16(Session["UserId"].ToString()); objRoleBiz.UnAssignUserRoleAndMenu(objRole); return(true); }