private void PopulateData()
        {
            IndividualsLoading = true;

            string SearchObjectJson = JsonConvert.SerializeObject(IndividualFilterObject,
                                                                  Formatting.Indented,
                                                                  new JsonSerializerSettings
            {
                DateTimeZoneHandling = DateTimeZoneHandling.Unspecified
            });


            var response = individualService.GetIndividualsByPage(currentPage, itemsPerPage, SearchObjectJson);

            if (response.Success)
            {
                IndividualsFromDB = new ObservableCollection <IndividualViewModel>(response?.IndividualsByPage ?? new List <IndividualViewModel>());
                totalItems        = response?.TotalItems ?? 0;

                int itemFrom = totalItems != 0 ? (currentPage - 1) * itemsPerPage + 1 : 0;
                int itemTo   = currentPage * itemsPerPage < totalItems ? currentPage * itemsPerPage : totalItems;

                PaginationDisplay = itemFrom + " - " + itemTo + " od " + totalItems;
            }
            else
            {
                IndividualsFromDB       = new ObservableCollection <IndividualViewModel>(new List <IndividualViewModel>());
                MainWindow.ErrorMessage = response.Message;
                totalItems = 0;
            }
            IndividualsLoading = false;
        }