public bool CheckUserRoleCodeAvailable(Guid?userRoleId, string code) { bool blnAvailable = true; var userRole = userRoleRepository.CheckUserRoleCodeAvailable(userRoleId, code); if (userRole.Any()) { blnAvailable = false; } return(blnAvailable); }
public bool CheckUserRoleCodeAvailable(Guid?userRoleId, string code) { bool blnAvailable = true; var userRole = userRoleRepository.CheckUserRoleCodeAvailable(userRoleId, code); if (userRole.Any()) { blnAvailable = false; } return(blnAvailable); }