Exemplo n.º 1
0
        public IActionResult AdvertAdd(int id)
        {
            ViewBag.ProvinceList   = _provinceService.GetList();
            ViewBag.HeatingList    = _heatingService.GetList();
            ViewBag.AdvertTypeList = _advertTypeService.GetList();
            var realEstate = _realEstateService.GetById(id);

            var realEstateData = realEstate.Data;



            return(View(realEstateData));
        }
Exemplo n.º 2
0
 public IActionResult Index()
 {
     ViewBag.AdvertListCount     = _advertService.GetAll().Count;
     ViewBag.AdvertTypeListCount = _advertTypeService.GetList().Count;
     ViewBag.RealEstateListCount = _realEstateService.GetList().Count;
     ViewBag.HeatingListCount    = _heatingService.GetList().Count;
     return(View());
 }
Exemplo n.º 3
0
 public IActionResult Index()
 {
     return(View(_advertTypeService.GetList().ToList()));
 }