public string View() { //<!--...--> var result = File.ReadAllText(@".\Application\Resources\add.html"); var cakes = CakeList.AllCakes(); result = result.Replace("<!--...-->", cakes); return(result); }
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); }