// GET: SoldProducts/Edit/5
        public ActionResult Edit(int id)
        {
            var model = SoldProductLogic.GetSoldProductById(id);

            ViewBag.DropDownListData = SoldProductLogic.GetAllInitialData() ?? new SoldProductViewModel();
            return(View(model));
        }
        // GET: SoldProducts/Delete/5
        public ActionResult Delete(int id)
        {
            var model = SoldProductLogic.GetSoldProductById(id);

            return(View(model));
        }
Beispiel #3
0
        public JsonResult GetbyId(int id)
        {
            var model = SoldProductLogic.GetSoldProductById(id);

            return(Json(model, JsonRequestBehavior.AllowGet));
        }