public ActionResult Create([Bind(Include = "Name,Price,Description,CategoryCode,Discount")] Flower flower, string strImageUrl) { if (mySQLFlowerService.CreateWithImage(flower, ModelState, strImageUrl, null)) { return(RedirectToAction("Index")); } return(View(flower)); }
public ActionResult Create([Bind(Include = "Code,Name,Description,ParentCode")] Category category, string strImageUrl) { if (mySQLCategoryService.CreateWithImage(category, ModelState, strImageUrl, null)) { return(RedirectToAction("Index")); } return(View(category)); }