public string BuildPageTitle(ISchoolClosuresViewModel model) { var title = "List of emergency school closures"; if (!model.IsToday() && !model.IsTomorrow()) { // Add date to page title string titleSuffix = " on " + model.TargetDay.ToBritishDateWithDay(); title += titleSuffix; } return(title); }
public PartialViewResult ClosureListCached(ISchoolClosuresViewModel model, string date) { return(PartialView("~/Views/Shared/ServiceClosures/_ClosureList.cshtml", model)); }