public JsonResult DeleteCustomer(string CustomerID) { try { Services.CustomerService CustomerService = new Services.CustomerService(); int result = CustomerService.DeleteCustomerByID(CustomerID); if (result >= 1) { return(this.Json(true)); } else { return(this.Json(false)); } } catch (Exception) { return(this.Json(false)); } }