public ActionResult AddOrEditConsumable(string id) { ConsumableMaterialModel emp = new ConsumableMaterialModel(); JSONReadWrite ex = new JSONReadWrite(); emp = ex.getConsumableById(id); return(View(emp)); }