示例#1
0
        public ActionResult AllAdd()
        {
            var allAdds         = _Context.Advertisements.Where(a => a.IsPaid == true);
            var allAddViewModel = new AllAddViewModel()
            {
                Advertisements = allAdds
            };

            return(View(allAddViewModel));
        }
示例#2
0
        public ActionResult SearchDistrict(CreateAddViewModel cavm)
        {
            var districtId = cavm.DistrictId;
            var districtWiseAdvertisement = _Context.Advertisements.Where(a => a.DistrictId == districtId && a.IsPaid == true);
            var allAdd = new AllAddViewModel()
            {
                Advertisements = districtWiseAdvertisement
            };

            return(View(allAdd));
        }
示例#3
0
        public ActionResult SearchThana(CreateAddViewModel cavm)
        {
            var thanaId = cavm.ThanaId;
            var thanaWiseAdvertisments = _Context.Advertisements.Where(a => a.ThanaId == thanaId && a.IsPaid == true).ToList();

            var allAdd = new AllAddViewModel()
            {
                Advertisements = thanaWiseAdvertisments
            };

            return(View(allAdd));
        }