public List <dynamic> AddMalariaType([FromBody] Malaria_Type malaria_Type)
 {
     if (malaria_Type != null)
     {
         MalariaEntities1 db = new MalariaEntities1();
         db.Configuration.ProxyCreationEnabled = false;
         db.Malaria_Type.Add(malaria_Type);
         db.SaveChanges();
         return(getAllMalariaType());
     }
     else
     {
         return(null);
     }
 }
 public List <dynamic> UpdateMalariaType([FromBody] Malaria_Type malaria_Type)
 {
     if (malaria_Type != null)
     {
         MalariaEntities1 db = new MalariaEntities1();
         db.Configuration.ProxyCreationEnabled = false;
         Malaria_Type objMal = db.Malaria_Type.Where(p => p.Malaria_Type_ID == malaria_Type.Malaria_Type_ID).FirstOrDefault();
         objMal.Malaria_Type1 = malaria_Type.Malaria_Type1;
         db.SaveChanges();
         return(getAllMalariaType());
     }
     else
     {
         return(null);
     }
 }
        public List <dynamic> DeleteMalariaType(int ID)
        {
            MalariaEntities1 db = new MalariaEntities1();

            db.Configuration.ProxyCreationEnabled = false;
            Malaria_Type objMal = db.Malaria_Type.Where(p => p.Malaria_Type_ID == ID).FirstOrDefault();

            if (objMal != null)
            {
                db.Malaria_Type.Remove(objMal);
                db.SaveChanges();
                return(getAllMalariaType());
            }
            else
            {
                return(null);
            }
        }