public ActionResult AddNewItem(Item item, HttpPostedFileBase file, String name) { string url = UploadNewPic(file, name); item.UrlPath = url; _itemModel.AddItem(item); return(RedirectToAction("index")); }