Ejemplo n.º 1
0
 public void Update(ProfileContract user)
 {
     using (var dbConnector = new DBConnector())
     {
         ProfileManager profileManager = new ProfileManager(dbConnector.DataContext);
         var            userEntity     = ProfilesTranslator.ConvertToProfileEntity(user);
         profileManager.Update(userEntity);
     }
 }
Ejemplo n.º 2
0
 public void Add(ProfileContract profile)
 {
     using (var dbConnector = new DBConnector())
     {
         ProfileManager profileManager = new ProfileManager(dbConnector.DataContext);
         var            profileEntity  = ProfilesTranslator.ConvertToProfileEntity(profile);
         profileManager.Add(profileEntity);
     }
 }