Esempio n. 1
0
 private void MapWithUrls(List <UserUrl> userUrlIds)
 {
     foreach (var userUrl in userUrlIds)
     {
         PTCOfferWallUserUrl.CreateMapping(this.Id, userUrl.Id);
     }
 }
Esempio n. 2
0
 public static void CreateMapping(int ptcOfferWallId, int userUrlId)
 {
     if (!RecordExists(ptcOfferWallId, userUrlId))
     {
         var item = new PTCOfferWallUserUrl(ptcOfferWallId, userUrlId);
         item.Save();
     }
 }