Exemplo n.º 1
0
        public ActionResult AddProduct(string urunAdi, int?stokMiktari, FormCollection urunTipi, FormCollection formCollection)
        {
            string a = formCollection["Dolaplar"];
            string b = urunTipi["[0].UrunTipi"];

            StokKontrolEntitiesProvider.AddProduct(urunAdi, stokMiktari, Convert.ToInt32(a), Convert.ToInt32(b));
            return(RedirectToAction("Products", "Home"));
        }