コード例 #1
0
        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 }));
        }