public void CreateUser(UserEntity user, ProfileEntity profile) { DalUser du = user.ToDalUser(); du.Profile = profile.ToDalProfile(); DalProfile dp = profile.ToDalProfile(); dp.User = user.ToDalUser(); uow.Users.Create(du); //uow.Profiles.Create(dp); uow.Commit(); }
public void DeleteProfile(ProfileEntity profile) { profileRepository.Delete(profile.ToDalProfile()); uow.Commit(); }