protected string GetRoleText(Scope scope, bool IsAdmin, bool IsShipDirector) { if (IsShipDirector) { return("Ship Director"); } else { return(LookupBLL.GetRoleNameUsingScope(scope, IsAdmin, (Descriptor?)null)); } }
protected string GetRoleNameColumnValue(UserSearchViewData viewData) { if (viewData.UserRoleText == string.Empty) { if (viewData.IsShipDirector) { return("Ship Director"); } else { return(LookupBLL.GetRoleNameUsingScope(viewData.Scope, viewData.IsAdmin, (Descriptor?)null)); } } else { return(viewData.UserRoleText); } }
protected string GetUserScopeForRegionalUser(bool IsAdmin) { return(LookupBLL.GetRoleNameUsingScope(UserData.Scope, IsAdmin, (Descriptor?)null)); }