public ActionResult HapusBarang(DetailPenjualanViewModel model) { if (PenjualanRepo.HapusBarang(model)) { return(Json(new { success = true }, JsonRequestBehavior.AllowGet)); } else { return(Json(new { success = false, message = PenjualanRepo.Message }, JsonRequestBehavior.AllowGet)); } }
public ActionResult Save(HeaderDetailPenjualanViewModel model) { ReturnValueViewModel result = PenjualanRepo.SaveSelling(model); return(Json(new { data = result }, JsonRequestBehavior.AllowGet)); }
public ActionResult GetItemById(int id) { return(PartialView(PenjualanRepo.GetDetailById(id))); }