Exemplo n.º 1
0
        public DogViewModel GetDog(int DogID)
        {
            var          dogy       = dogRepo.GetByID(DogID);
            DogViewModel dogForEdit = new DogViewModel()
            {
                DogID       = dogy.DogID,
                DogOwnerID  = dogy.DogOwnerID,
                DogName     = dogy.DogName,
                DogSize     = dogy.DogSize,
                Description = dogy.Description
            };

            return(dogForEdit);
        }