/// <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(); }
public void Update(BllProfile profile) { uow.Profiles.Update(profile.ToDalProfile()); uow.Commit(); }
/// <summary> /// Deletes a profile /// </summary> /// <param name="entity">Profile</param> public void Delete(BllProfile entity) { profileRepository.Delete(entity.ToDalProfile()); unitOfWork.Commit(); }