コード例 #1
0
        // GET: Branches/Details/5
        public async Task <IActionResult> Details(int?id)
        {
            if (id == null)
            {
                return(NotFound());
            }

            var branch = await _service.GetDetails((int)id);

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

            return(View(branch));
        }