Ejemplo n.º 1
0
 void Awake()
 {
     if (instance == null)
     {
         instance = this;
     }
 }
Ejemplo n.º 2
0
 public bool addItem(Item_Detail newItem)
 {
     using (objItem)
     {
         objItem.Item_Details.InsertOnSubmit(newItem);
         objItem.SubmitChanges();
         return true;
     }
 }
Ejemplo n.º 3
0
        public ActionResult Create(Item_Detail newItem, FormCollection collection)
        {
            try
            {
                // TODO: Add insert logic here

                newItem.item_description = collection["item_description"];

                itemObj.addItem(newItem);

                return RedirectToAction("Create");
            }
            catch
            {
                return View();
            }
        }