Esempio n. 1
0
 public bool DeleteUserProfile(UserProfile entity)
 {
     if (entity == null) return false;
     _unitOfWork.UserProfileRepository.Delete(entity);
     _unitOfWork.Save();
     return true;
 }
Esempio n. 2
0
 public bool EditInfo(UserProfile profile)
 {
     var userPrfl = _unitOfWork.UserProfileRepository.FindBy(u => u.UserProfileID == profile.UserProfileID).SingleOrDefault();
     if (userPrfl == null) return false;
     userPrfl.FirstName = profile.FirstName;
     userPrfl.LastName = profile.LastName;
     userPrfl.GrandFatherName = profile.GrandFatherName;
     _unitOfWork.Save();
     return true;
 }
Esempio n. 3
0
 public bool EditUserProfile(UserProfile entity)
 {
     _unitOfWork.UserProfileRepository.Edit(entity);
     _unitOfWork.Save();
     return true;
 }