Exemplo n.º 1
0
        public IActionResult Edit(GarageViewModel model)
        {
            var garageForEdit = _mapper.Map <Garage>(model);

            _garageService.EditGarage(garageForEdit);

            return(RedirectToAction("Index"));
        }
 public async Task <IActionResult> EditGarage(GarageDto garage)
 {
     return(await Task.Run(() => CallApi(() => _garageService.EditGarage(garage))));
 }