コード例 #1
0
        public async Task <IActionResult> Details(Guid?id)
        {
            if (id == null)
            {
                return(BadRequest());
            }
            var vehicle = await service.GetIdMake(id);

            if (vehicle == null)
            {
                return(NotFound());
            }
            VehicleMakeView getVehicle = mapper.Map <VehicleMakeView>(vehicle);

            return(View(getVehicle));
        }