public async Task <List <Person> > GetRoomers([FromRoute] Guid addressId, [FromQuery] int offset, [FromQuery] int count = 10)
        {
            var result = await _flatService.GetRoomers(addressId, offset, count);

            throw new InvalidOperationException("Ошибка");

//            return JsonConvert.SerializeObject(result, new JsonSerializerSettings
//            {
//                ReferenceLoopHandling = ReferenceLoopHandling.Ignore,
//                NullValueHandling = NullValueHandling.Ignore
//            });

            return(result);
        }
        public async Task<IActionResult> Index()
        {
//            dynamic d = new ExpandoObject();
//
//            d.MyProp = 1;
//            d.Str = "sdfsdf";
//
//            var myprop = d.MyProp;

            ViewBag.MyString = "My string";

            var persons = await _flatService.GetRoomers(Guid.Parse("31b1e492-278e-4b57-80ed-805cced59fdf"), 0, 10);
            
            return View("Index", new IndexViewModel(persons));
        }