#pragma warning disable 1998 public async override global::System.Threading.Tasks.Task ExecuteAsync() { BeginContext(0, 344, true); WriteLiteral(@"<div class=""head""> <h1>Chefs | <a href=""/dishes"">Dishes</a></h1> <a class=""addLink"" href=""/new"">Add a Chef</a> </div> <h3>Check out our roster of Chefs!</h3> <hr> <table class=""table table-striped table-bordered""> <thead> <th>Name</th> <th>Age</th> <th># of Dishes</th> </thead> <tbody> "); EndContext(); #line 14 "C:\Users\James\Desktop\CD\C#\MVC\ChefsNDishes\Views\Home\Chefs.cshtml" if (ViewBag.AllChefs != null) { #line default #line hidden #line 16 "C:\Users\James\Desktop\CD\C#\MVC\ChefsNDishes\Views\Home\Chefs.cshtml" foreach (var c in ViewBag.AllChefs) { #line default #line hidden BeginContext(459, 46, true); WriteLiteral(" <tr>\r\n <td>"); EndContext(); BeginContext(506, 11, false); #line 19 "C:\Users\James\Desktop\CD\C#\MVC\ChefsNDishes\Views\Home\Chefs.cshtml" Write(c.FirstName); #line default #line hidden EndContext(); BeginContext(517, 1, true); WriteLiteral(" "); EndContext(); BeginContext(519, 10, false); #line 19 "C:\Users\James\Desktop\CD\C#\MVC\ChefsNDishes\Views\Home\Chefs.cshtml" Write(c.LastName); #line default #line hidden EndContext(); BeginContext(529, 31, true); WriteLiteral("</td>\r\n <td>"); EndContext(); BeginContext(561, 24, false); #line 20 "C:\Users\James\Desktop\CD\C#\MVC\ChefsNDishes\Views\Home\Chefs.cshtml" Write(Chef.CalculateAge(c.DOB)); #line default #line hidden EndContext(); BeginContext(585, 31, true); WriteLiteral("</td>\r\n <td>"); EndContext(); BeginContext(617, 21, false); #line 21 "C:\Users\James\Desktop\CD\C#\MVC\ChefsNDishes\Views\Home\Chefs.cshtml" Write(c.CreatedDishes.Count); #line default #line hidden EndContext(); BeginContext(638, 30, true); WriteLiteral("</td>\r\n </tr>\r\n"); EndContext(); #line 23 "C:\Users\James\Desktop\CD\C#\MVC\ChefsNDishes\Views\Home\Chefs.cshtml" } #line default #line hidden #line 23 "C:\Users\James\Desktop\CD\C#\MVC\ChefsNDishes\Views\Home\Chefs.cshtml" } #line default #line hidden BeginContext(694, 22, true); WriteLiteral(" </tbody>\r\n</table>"); EndContext(); }