public ActionResult PostAdvertisement()
        {
            User CurrentUser = (User)Session[WebUtil.CURRENT_USER];

            if (CurrentUser == null)
            {
                return(RedirectToAction("Login", "Users", new { returnurl = "Advertisement/PostAdvertisement" }));
            }
            ViewBag.Country  = new LocationHandler().GetCountries().ToSelectList();
            ViewBag.Catagory = new CatagoriesHandler().GetCatagories().ToSelectList();
            var temp = new AdvertisementTypeHandler().GetAdvertisementTypes().ToSelectList();

            temp.First().Selected = true;
            ViewBag.AdvType = temp;
            return(View());
        }
        public ActionResult PostAdvertisement()
        {
            //Query String Method
            User currentUser = (User)Session[WebUtil.CURRENT_USER];

            if (currentUser == null)
            {
                return(RedirectToAction("Login", "User", new { returnurl = "Advertisement/PostAdvertisement" }));
            }

            ViewBag.CountryList  = new LocationHandler().getAllCountries().ToSelectList();
            ViewBag.CatagoryList = new CatagoryHendler().getAllCatagories().ToSelectList();
            var type = new AdvertisementTypeHandler().GetAllAdvertisementTypes().ToSelectList();

            type.First().Selected = true;
            ViewBag.advType = type;
            return(View());
        }