Beispiel #1
0
        public ActionResult Create(FormCollection collection)
        {
            var v = new Campaign();

            UpdateModel(v);

            repo.Add(v);

            repo.Save();

            return RedirectToAction("Edit");
        }
Beispiel #2
0
 public Campaign Add(Campaign e)
 {
     DB.Campaigns.AddObject(e);
     return e;
 }
Beispiel #3
0
 /// <summary>
 /// Deprecated Method for adding a new object to the Campaigns EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToCampaigns(Campaign campaign)
 {
     base.AddObject("Campaigns", campaign);
 }
Beispiel #4
0
 /// <summary>
 /// Create a new Campaign object.
 /// </summary>
 /// <param name="id">Initial value of the ID property.</param>
 public static Campaign CreateCampaign(global::System.Int32 id)
 {
     Campaign campaign = new Campaign();
     campaign.ID = id;
     return campaign;
 }