public List<Animalpar> GetAllDeadAnimals()
        {
            //DeadAnimalView model = new DeadAnimalView();
            using (var b = new DeadAnimalRepository())
            {

                return b.GetAll().Select(x => new Animalpar
                {
                    AnimalId = x.AnimalId,
                    AniCode = x.AniCode,
                    BatchTypeDesc = bat.GetAll().Find(y => y.BatchTypeid == x.BatchTypeid).BatchTypeDesc,
                    AniColor = x.AniColor,
                    AniFeedingStatus = x.AniFeedingStatus,
                    AniAge = x.AniAge,
                    AniGender = x.AniGender,
                    AniHealthStatus = "Dead",
                    AniCurrentCost = x.AniCurrentCost,
                    AniSaleStatus = x.AniSaleStatus,
                    AniTotCost = 0,
                    AnimalValue = Convert.ToDouble(x.AniCurrentCost + x.AniTotCost),
                    //deathCause = "none",

                }).ToList();
            }
        }