public void Process(WebRequest webRequest) { //Get the request parameter int id = Convert.ToInt32(webRequest.QueryArguments.GetValues("packageID")[0]); //Get the specific Package from the repository _storage.Add(ViewStorageKeys.Package, _repository.GetByPackageId(id)); _pageNavigator.NavigateTo(PageDirectory.Package); }
public void Process(WebRequest webRequest) { _storage.Add(ViewStorageKeys.Users, _repository.GetAll()); _pageNavigator.NavigateTo(PageDirectory.Users); }