public IActionResult OnGet(string lineName, string operatorId) { line = lines.Value.Where(l => l.LineName == lineName).FirstOrDefault(); if (line == null) { //todo: przerobiæ tak by strona not found wyœwietla³a info, ¿e nie zanleziono takiej linii 4 overload RedirectToPage return(RedirectToPage("./NotFound")); } accOperator = accOperatorData.GetOperatorByOperatorId(line, operatorId); if (accOperator == null) { return(RedirectToPage("./NotFound")); } return(Page()); }