public JsonResult DeletePropertyValue(long id) { try { CatalogPropertiesValueBusiness catalogPropertiesValueBusiness = new CatalogPropertiesValueBusiness(); catalogPropertiesValueBusiness.Remove(id); return(Json(1)); } catch { return(Json(0)); } }
public JsonResult UpdatePropertyValue(long id, string properties_value_edit) { try { CatalogPropertiesValueBusiness catalogPropertiesValueBusiness = new CatalogPropertiesValueBusiness(); CatalogPropertiesValue catalogPropertiesValue = new CatalogPropertiesValue(); catalogPropertiesValue = catalogPropertiesValueBusiness.GetById(id); catalogPropertiesValue.Value = properties_value_edit; catalogPropertiesValueBusiness.Edit(catalogPropertiesValue); return(Json(1)); } catch { return(Json(0)); } }