Exemplo n.º 1
0
        // GET: Admin/Race
        public ActionResult Index()
        {
            AddRaceWM model = new AddRaceWM()
            {
                Pettypes = _PettypeService.GetActive(),
                Races    = _raceService.GetActive(),
            };

            return(View(model));
        }
        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));
        }
Exemplo n.º 3
0
        public ActionResult List()
        {
            List <Pettype> model = _pettypeService.GetActive();

            return(View(model));
        }