/// <summary> /// 2018/12/18 Deepanjali Yadav /// Get list of all product. /// </summary> /// <returns>List<STP_ShowAllProductList_Result></returns> public List <STP_ShowAllProductList_Result> GetProductList() { try { using (ShoppingCartEntities db = new ShoppingCartEntities()) { List <STP_ShowAllProductList_Result> productList = db.STP_ShowAllProductList().ToList(); return(productList); } } catch (System.Exception ex) { objErrorLogger.ErrorLog(ex); throw ex; } }