public ActionResult Details(int id) { using (BarangDAL brg = new BarangDAL()) { var result = brg.GetDataId(id); return(View(result)); } }
public ActionResult Edit(int id) { using (BarangDAL service = new BarangDAL()) { var shop = service.GetDataId(id); return(View(shop)); } }