예제 #1
0
        // GET: BikeMakers/Edit/5
        public async Task <IActionResult> Edit(int?id)
        {
            if (id == null)
            {
                return(NotFound());
            }
            var model = await _context.BikeMakers.FindAsync(id);

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

            var bikeMakerModel = _converterHelper.ToBikeMakerViewModel(model);

            if (bikeMakerModel == null)
            {
                return(NotFound());
            }
            return(View(bikeMakerModel));
        }