Esempio n. 1
0
 /// <summary>
 /// 2018/12/17 Vaishnavi Soni
 /// Delete an existing product category
 /// </summary>
 /// <returns>int</returns>
 public int DeleteSubCategory(int SubCategoryId)
 {
     try
     {
         using (ShoppingCartEntities db = new ShoppingCartEntities())
         {
             var categoryToDelete = db.STP_DeleteSubCategory(SubCategoryId);
             db.SaveChanges();
             return(categoryToDelete);
         }
     }
     catch (System.Exception ex)
     {
         objErrorLogger.ErrorLog(ex);
         throw ex;
     }
 }