public ActionResult _insertProduct() { ProductFULL producto = new ProductFULL { tipo = BuissnesSrc.SelectTipo(), color = BuissnesSrc.SelectColor(), marca = BuissnesSrc.SelectMarca(), proveedor = BuissnesSrc.SelectProveedor(), catalago = BuissnesSrc.SelectCatalago() }; return(View(producto)); }
public ActionResult _editProduct(int id) { ProductFULL producto = new ProductFULL { prod = BuissnesSrc.SearchProd(id, null).FirstOrDefault(), tipo = BuissnesSrc.SelectTipo(), color = BuissnesSrc.SelectColor(), marca = BuissnesSrc.SelectMarca(), proveedor = BuissnesSrc.SelectProveedor(), catalago = BuissnesSrc.SelectCatalago() }; return(View(producto)); }
public ActionResult _insertProductAction(FormCollection formCollection, HttpPostedFileBase file) { bool status = ProductFULL.InsertProductoModel(formCollection, file); if (status) { TempData["SuccessInsert"] = "true"; } else { TempData["SuccessInsert"] = "false"; } return(RedirectToAction("Index")); }
public ActionResult _uploadProduct(FormCollection formCollection) { bool status = ProductFULL.UpdateProductoModel(formCollection); if (status) { TempData["SuccessUpdate"] = "true"; } else { TempData["SuccessUpdate"] = "false"; } return(RedirectToAction("Index")); }