Beispiel #1
0
 public List <user_profile> GetListEmployee(string search)
 {
     if (Equals(search, null))
     {
         search = "";
     }
     return(UserProfileRepository.FindBy(p => p.role > 1 && (p.phone_number.ToString().Contains(search) || p.full_name.Contains(search) || p.email.Contains(search))).ToList());
 }
Beispiel #2
0
 public List <user_profile> GetListUserProfile(string search)
 {
     return(UserProfileRepository.FindBy(p => p.status == 1 && (Equals(search, null) || p.email.Equals(search) || p.full_name.Equals(search)))
            .ToList());
 }
Beispiel #3
0
 public user_profile GetUserProfileByEmail(string email)
 {
     return(UserProfileRepository.FindBy(p => p.email == email).FirstOrDefault());
 }
Beispiel #4
0
 public user_profile GetUserProfileById(int userProfileId)
 {
     return(UserProfileRepository.FindBy(p => p.user_profile_id == userProfileId).FirstOrDefault());
 }
Beispiel #5
0
 public user_profile GetUserProfileByNameAndPhone(string name, string phone)
 {
     return(UserProfileRepository.FindBy(p => p.full_name == name && p.phone == phone).FirstOrDefault());
 }
Beispiel #6
0
 public List <user_profile> SearchUserProfile(string search)
 {
     return(UserProfileRepository.FindBy(p => p.status == 1 && (Equals(search, null) || p.full_name.Contains(search) || p.email.Contains(search))).OrderByDescending(p => p.user_profile_id).ToList());
 }
Beispiel #7
0
 public user_profile GetActiveUserProfileById(int id)
 {
     return(UserProfileRepository.FindBy(p => p.user_profile_id == id && p.status == 1).FirstOrDefault());
 }
Beispiel #8
0
 public user_profile GetUserProfileByPhoneNumber(string PhoneNumber)
 {
     return(UserProfileRepository.FindBy(p => p.phone_number == PhoneNumber).FirstOrDefault());
 }