public void UpdateDeadAnimals(Animalpar model)
 {
     using (var animal = new DeadAnimalRepository())
     {
         DeadAnimal ani = animal.GetById(model.AnimalId);
         if (ani != null)
         {
             ani.AnimalId = model.AnimalId;
             ani.AniCode = model.AniCode;
             //ani.b = model.BatchTypeDesc;
             ani.AniColor = model.AniColor;
             ani.AniFeedingStatus = model.AniFeedingStatus;
             ani.AniAge = model.AniAge;
             ani.AniGender = model.AniGender;
             ani.AniHealthStatus = model.AniHealthStatus;
             ani.AniCurrentCost = model.AniCurrentCost;
             ani.AniSaleStatus = model.AniSaleStatus;
             ani.AniTotCost = model.AniTotCost;
             ani.AnimalValue = model.AnimalValue;
             animal.Update(ani);
         }
     }
 }