Example #1
0
 private void DeleteImage(HttpContext context)
 {
     string text = context.Request.Form["ValueId"];
     int num = Globals.SafeInt(text, 0);
     Maticsoft.BLL.Shop.Products.AttributeValue value2 = new Maticsoft.BLL.Shop.Products.AttributeValue();
     if (value2.DeleteImage((long) num))
     {
         context.Response.Write("SUCCESS");
     }
     else
     {
         context.Response.Write("FAILED");
     }
 }
 public PartialViewResult AttrValues(int AttrId, int Top = -1, string viewName = "_AttrValues")
 {
     List<Maticsoft.Model.Shop.Products.AttributeValue> modelList = new Maticsoft.BLL.Shop.Products.AttributeValue().GetModelList(" AttributeId=" + AttrId);
     return this.PartialView(viewName, modelList);
 }