public UserProfile Save(UserProfile userProfile) { using(var transaction = _session.BeginTransaction()) { _session.SaveOrUpdate(userProfile); transaction.Commit(); } return userProfile; }
public UserProfile UpdateUserProfile(UserProfile userProfile) { return _userProfileRepository.Save(userProfile); }