コード例 #1
0
 /// <summary>
 /// Updates the user's id on the profile
 /// </summary>
 /// <param name="entity">Profile</param>
 /// <param name="id">User id</param>
 public void UpdateUserId(BllProfile entity, int id)
 {
     profileRepository.UpdateUserId(entity.ToDalProfile(), id);
     unitOfWork.Commit();
 }
コード例 #2
0
 public void Update(BllProfile profile)
 {
     uow.Profiles.Update(profile.ToDalProfile());
     uow.Commit();
 }
コード例 #3
0
 /// <summary>
 /// Deletes a profile
 /// </summary>
 /// <param name="entity">Profile</param>
 public void Delete(BllProfile entity)
 {
     profileRepository.Delete(entity.ToDalProfile());
     unitOfWork.Commit();
 }