Пример #1
0
        public IActionResult Confirm(int id)
        {
            var home = repository.FindById(id);

            home.SubmittedByAdmin = true;
            repository.Update(home);
            var homes = repository.GetAll().Select(x => HomeViewModel.MapHomeToHomeViewModel(x));

            return(PartialView("Homes", homes));
        }