public IActionResult Relocate(TyreInfoRelocateViewModel model)
 {
     if (ModelState.IsValid)
     {
         TyreInfo tyreInfo = _tyreInfosRepository.GetTyreInfo(model.Id);
         tyreInfo.TyreShopId = model.NewTyreShopId;
         _tyreInfosRepository.Update(tyreInfo);
         return(RedirectToAction("details", "cars", new { id = model.CarId }));
     }
     return(RedirectToAction("relocate", new { tyreInfoId = model.Id }));
 }
        public ViewResult Relocate(Guid tyreInfoId)
        {
            TyreInfoRelocateViewModel model = new TyreInfoRelocateViewModel
            {
                Id        = tyreInfoId,
                CarId     = _tyreInfosRepository.GetTyreInfo(tyreInfoId).CarId,
                TyreShops = _tyreShopsRepository.GetAll().ToList()
            };

            return(View(model));
        }