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