Exemple #1
0
        // GET: Gasstation

        public ActionResult Add()
        {
            ViewBag.listDistrist = _districtRepository.GetAll().OrderBy(x => x.DistrictName);
            ViewBag.listGasType  = _mTpyeRepository.GetAll().Where(x => x.TypeType == 3).ToList();
            ViewBag.ratingList   = _mTpyeRepository.GetAll().Where(x => x.TypeType == 4).ToList();
            return(View());
        }
 public ActionResult Index()
 {
     ViewBag.listDistrist = _districtRepository.GetAll().OrderBy(x => x.DistrictName);
     ViewBag.listGasType  = _mTypeRepository.GetAll().Where(x => x.TypeType == 3).ToList();
     ViewBag.pageCount    = _gasStationRepository.GetAll().Count();
     return(View());
 }