Beispiel #1
0
        public async Task <IActionResult> Student(Guid sId)
        {
            if (sId == Guid.Empty)
            {
                return(View("Oops"));
            }

            var result = await _repo.GetStudent(sId);

            if (result.IsSuccess)
            {
                return(View("Student", result.Content));
            }

            return(View("Oops"));
        }