/// <summary> /// 2018/12/17 Vaishnavi Soni /// Get list of all product categories. /// </summary> /// <returns>List<Category></returns> public STP_GetSubCategoryDetails_Result GetSubCategoryDetails(int SubCategoryId) { try { using (ShoppingCartEntities db = new ShoppingCartEntities()) { STP_GetSubCategoryDetails_Result result = db.STP_GetSubCategoryDetails(SubCategoryId).FirstOrDefault(); if (result != null) { return(result); } return(null); } } catch (System.Exception ex) { objErrorLogger.ErrorLog(ex); throw ex; } }