Example #1
0
        public ActionResult Delete(int id)
        {
            SLProductVariation.SLProductVariationClient slpv = new SLProductVariation.SLProductVariationClient();
            string[] errors = new string[0];
            slpv.DeletePV(id, ref errors);
            AllProductInfo api = new AllProductInfo();

            //api.pvList[id] = ProductVariationClientService.ReadProductVariationDetail(id);
            return(View("Index", api));
        }
 /// <summary>
 /// call service layer's delete student method
 /// </summary>
 /// <param name="id"></param>
 public static void DeletePV(int id)
 {
     SLProductVariation.ISLProductVariation SLProductVariation = new SLProductVariation.SLProductVariationClient();
     string[] errors = new string[0];
     SLProductVariation.DeletePV(id, ref errors);
 }