public async Task <IActionResult> Index()
        {
            var model = new ServicesIndexViewModel();

            model.Services = await _servicesService.GetAllServices().ToListAsync();

            model = _prepearingModelHelper.ConfigServicesIndexViewModel(model);
            return(View("Index", model));
        }
        public async Task <IActionResult> Index(int id = 0)
        {
            var model = new ServicesIndexViewModel()
            {
                Ad = new AdDTO()
            };

            var operationDetails = await _adService.GetAdById(id, dataForEdit : false);

            if (!operationDetails.Succedeed)
            {
                return(View("Index", model.StatusMessage = operationDetails.Message));
            }

            model.Ad           = operationDetails.Property;
            model.SelectedAdId = id;
            model.Services     = await _servicesService.GetAllServices().ToListAsync();

            model = _prepearingModelHelper.ConfigServicesIndexViewModel(model);

            return(View("Index", model));
        }