public async Task <ActionResult> Create(CreateAdVM model)
        {
            try
            {
                if (!ModelState.IsValid)
                {
                    return(View(model));
                }

                var ads       = _mapper.Map <Ad>(model);
                var isSuccess = await _adRepo.Create(ads);

                if (!isSuccess)
                {
                    ModelState.AddModelError("", "Something went wrong...");
                    return(View(model));
                }



                return(RedirectToAction(nameof(Index)));
            }
            catch
            {
                return(View(model));
            }
        }