コード例 #1
0
        // GET: Admin/Race
        public ActionResult Index()
        {
            AddRaceWM model = new AddRaceWM()
            {
                Pettypes = _PettypeService.GetActive(),
                Races    = _raceService.GetActive(),
            };

            return(View(model));
        }
コード例 #2
0
        public ActionResult Add()
        {
            AddAdvertisementVM model = new AddAdvertisementVM()
            {
                appUsers       = _appUserService.GetActive(),
                Cities         = _cityService.GetActive(),
                Districts      = _districtService.GetActive(),
                Pettypes       = _pettypeService.GetActive(),
                Races          = _raceService.GetActive(),
                advertisements = _advertisementService.GetActive(),
            };

            return(View(model));
        }