public IActionResult OnGet() { CurrentCourse = courses.GetCourse(1); Holes = courses.AllHoles(1); return(Page()); }
public IActionResult OnGet() { CurrentUser = UserRepository.Instance.Get(); CurrentCourse = courses.GetCourse(UserRepository.Instance.Get().CurrentCourseId); Holes = courses.AllHoles(UserRepository.Instance.Get().CurrentCourseId); return(Page()); }
public void OnGet(int id) { Holes = courses.AllHoles(id); courseId = id; Course = courses.GetCourse(id); }
public IActionResult OnGet() { CurrentCourse = courses.GetCourse(1); Holes = courses.AllHoles(1); statistics.UpdateSheet(MyStatSheet); return(Page()); }
public IActionResult OnPostSelectCourse(int id) { UserRepository.Instance.Get().CurrentCourseId = id; UserRepository.Instance.Get().CurrentHolesFilled = 1; // If the current holes par is more than 3, we go to the fairway. Otherwise, we skip the fairway shot. if (courses.GetCourse(id).Holes[UserRepository.Instance.Get().CurrentHolesFilled].Par > 3) { return(RedirectToPage("/Statistics/InputStats1")); } else { return(RedirectToPage("/Statistics/InputStats2")); } }
public void OnGet(int id) { CurrentCourse = courses.GetCourse(id); }
public IActionResult OnGet(int id) { CurrentCourses = courses.GetCourse(id); return(Page()); }
public void OnGet() { CurrentCourse = courses.GetCourse(1); Holes = courses.AllHoles(1); }