public IActionResult GetAllHouses()
        {
            var allHouseEntitys = _houseRepository.GetAll().ToList();

            var allHouseEntitysDto = allHouseEntitys.Select(x => Mapper.Map <HouseDto>(x));

            Response.Headers.Add("X-Pagination",
                                 JsonConvert.SerializeObject(new { totalCount = _houseRepository.Count() }));

            return(Ok(allHouseEntitysDto));
        }
        public IActionResult Index()
        {
            var homeVM = new HomeViewModel
            {
                HousesCount = _houseRepository.Count(x => true),
                PowersCount = _powerRepository.Count(x => true),
                HerosCount  = _heroRepository.Count(x => true),
            };

            return(View(homeVM));
        }