예제 #1
0
        public string View()
        {
            //<!--...-->
            var result = File.ReadAllText(@".\Application\Resources\add.html");
            var cakes  = CakeList.AllCakes();

            result = result.Replace("<!--...-->", cakes);

            return(result);
        }
예제 #2
0
        public string View()
        {
            //<!--...-->
            var cakes          = string.Empty;
            var result         = File.ReadAllText(@".\Application\Resources\search.html");
            var productsInCart = productsCount;

            if (string.IsNullOrEmpty(criteria))
            {
                cakes = CakeList.AllCakes();
            }
            else
            {
                cakes = CakeList.Search(criteria);
            }

            result = result.Replace("<!--...-->", cakes);

            return(result);
        }