예제 #1
0
        // GET: App/Sponsor/Details/5
        public async Task <IActionResult> Details(int?id)
        {
            if (id == null)
            {
                return(NotFound());
            }

            var sponsor = await sponsors.GetByIdAsync(id.Value);

            if (sponsor == null)
            {
                return(NotFound());
            }

            return(View(sponsor));
        }