Exemple #1
0
        public void UpdateDog(RequestModel dogReq, int id)
        {
            var dog = DogMapper.ToDog(dogReq);

            dog.Id = id;

            _dogRepo.Update(dog);
        }
Exemple #2
0
        public void AddDog(RequestModel dogReq)
        {
            var dog = DogMapper.ToDog(dogReq);

            dog.AddedOn = DateTime.Now;

            _dogRepo.Insert(dog);
        }