public ActionResult KittenPictures(int id) { Pets kitten = _kittensRepository.GetByID(id); return(View(kitten.Pictures.OrderBy(i => i.Order).ToList())); }
private KittenModelView GetModelViewByKittenId(int id) { var kitten = _kittensRepository.GetByID(id); return(Mapper.Map <Pets, KittenModelView>(kitten)); }