public async Task <IActionResult> GetApartments() { var host = await _hostService.LoggedHost(); if (host != null) { return(Ok(await _apartmentService.ApartmentsList(host.Id))); } return(Unauthorized()); }