public bool DeleteUserProfile(UserProfile entity) { if (entity == null) return false; _unitOfWork.UserProfileRepository.Delete(entity); _unitOfWork.Save(); return true; }
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; }
public bool EditUserProfile(UserProfile entity) { _unitOfWork.UserProfileRepository.Edit(entity); _unitOfWork.Save(); return true; }