Exemplo n.º 1
0
        public ActionResult Edit(Sk_Item model, FormCollection form)
        {
            model.ItemGroup = int.Parse(form["group"].ToString());
            _itemManager.Update(model);


            return RedirectToAction("Index");

        }
 /// <summary>
 /// Create a new Sk_Item object.
 /// </summary>
 /// <param name="id">Initial value of the Id property.</param>
 /// <param name="createdOn">Initial value of the CreatedOn property.</param>
 /// <param name="name">Initial value of the Name property.</param>
 /// <param name="price">Initial value of the Price property.</param>
 /// <param name="itemGroup">Initial value of the ItemGroup property.</param>
 public static Sk_Item CreateSk_Item(global::System.Int32 id, global::System.DateTime createdOn, global::System.String name, global::System.Double price, global::System.Int32 itemGroup)
 {
     Sk_Item sk_Item = new Sk_Item();
     sk_Item.Id = id;
     sk_Item.CreatedOn = createdOn;
     sk_Item.Name = name;
     sk_Item.Price = price;
     sk_Item.ItemGroup = itemGroup;
     return sk_Item;
 }
 /// <summary>
 /// Deprecated Method for adding a new object to the Sk_Item EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToSk_Item(Sk_Item sk_Item)
 {
     base.AddObject("Sk_Item", sk_Item);
 }