public IActionResult Delete(int id) { RegionContext regionContext = new RegionContext(connectionString); bool isOK = regionContext.Delete(id); DeleteRegionViewModels model = new DeleteRegionViewModels(); model.IsDeleted = isOK; return(View(model)); }