public void Update(Animal model)
 {
     _animalRepository.Update(model);
 }
 public void Delete(Animal model)
 {
     _animalRepository.Delete(model);
 }
 public void Insert(Animal model)
 {
     _animalRepository.Insert(model);
 }
        public void InsertAnimals(AnimalView model)
        {
            using (var x = new AnimalRepository())
            {

                var animals = new Animal
               {

                   AnimalId = model.AnimalId,
                    AniCode = model.AniCode,
                   BatchTypeid = model.BatchTypeid,
                   AniColor = model.AniColor,
                    AniFeedingStatus = "FeedLot",
                   AniAge = model.AniAge,
                   AniGender = model.AniGender,
                    AniHealthStatus = "Healthy",
                    AniCurrentCost = model.AniCurrentCost,
                   AniSaleStatus = "Not Ready",
                    AniTotCost = 0,
                    AnimalValue = model.AnimalValue,
               };
                x.Insert(animals);

            }
        }