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)); }
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()); }
public IActionResult Index() { return(View(_advertTypeService.GetList().ToList())); }