public ActionResult Create(FormCollection collection) { var v = new Campaign(); UpdateModel(v); repo.Add(v); repo.Save(); return RedirectToAction("Edit"); }
public Campaign Add(Campaign e) { DB.Campaigns.AddObject(e); return e; }
/// <summary> /// Deprecated Method for adding a new object to the Campaigns EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToCampaigns(Campaign campaign) { base.AddObject("Campaigns", campaign); }
/// <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; }