public IActionResult ChangeStreet(AddressModel addressModel) { var street = _context.Street.Single(x => x.Code == addressModel.Code); _repo.AddStreet(addressModel.Code, street.Name + " " + street.Socrname, street.Index, UsersRepository.lastRegUser); return(RedirectToAction("Index")); }