示例#1
0
        public ActionResult KittenPictures(int id)
        {
            Pets kitten = _kittensRepository.GetByID(id);

            return(View(kitten.Pictures.OrderBy(i => i.Order).ToList()));
        }
示例#2
0
        private KittenModelView GetModelViewByKittenId(int id)
        {
            var kitten = _kittensRepository.GetByID(id);

            return(Mapper.Map <Pets, KittenModelView>(kitten));
        }