public JsonResult DeleteSupplier(Suppliers pSuppliers) { try { dataSource.Remove(pSuppliers.SupplierID); return(Json(new { result = true }, JsonRequestBehavior.AllowGet)); } catch (Exception ex) { return(Json(new { result = false, msg = ex.Message }, JsonRequestBehavior.AllowGet)); } }