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();
 }
Exemplo n.º 2
0
 public void DeleteProfile(ProfileEntity profile)
 {
     profileRepository.Delete(profile.ToDalProfile());
     uow.Commit();
 }