public JsonResult _GRRemove(int id) { var sList = Session["grList"] as List <InventoryTransaction>; sList.Remove(sList.FirstOrDefault(a => a.InventoryTransactionId == id)); _productServices.DeleteInventoryTransactionById(id); return(Json(true, JsonRequestBehavior.AllowGet)); }