public JsonResult RemoveRelateProduct(int id) { IRepositryRelateProducts <Fly_RelatedProduct> repoRelatedProduct = new RelatedProductDAO(); bool result = false; try { repoRelatedProduct.Delete(id); result = true; } catch (Exception) { result = false; } return(Json(new { result = result })); }