public ActionResult GetAnimalParticularAddingView()
        {
            var model = new AnimalPaticularEditModel
            {
                AnimalTypes = _kindOfAnimalService.GetAnimalKinds().Select(_ => new SelectListItem()
                {
                    Text  = _.Name,
                    Value = _.Id.ToString()
                }).ToList()
            };

            return(View("AddingNewParticularAnimal", model));
        }
Пример #2
0
        public ActionResult GetExistingAnimalKind()
        {
            var models = _animalKindService.GetAnimalKinds();

            return(View("DifferentKindsOfAnimalsList", models));
        }