Exemple #1
0
        private bool IsCategogryAssigned(Usermaster usermasterModel, SavedAssignedRolesViewModel rolesModel)
        {
            if (rolesModel.RoleId == Convert.ToInt32(StatusMain.Roles.Agent) && _agentCheckInStatus.CheckIsCategoryAssignedtoAgent(usermasterModel.UserId))
            {
                return(true);
            }

            if (rolesModel.RoleId == Convert.ToInt32(StatusMain.Roles.AgentAdmin) && _iUserMaster.CheckIsCategogryAssignedtoAgentAdmin(usermasterModel.UserId))
            {
                return(true);
            }

            if (rolesModel.RoleId == Convert.ToInt32(StatusMain.Roles.Hod) && _iUserMaster.CheckIsCategogryAssignedtoHod(usermasterModel.UserId))
            {
                return(true);
            }

            return(false);
        }