public List <Campaigns> GetAllActiveCampaign(int date = 30)
        {
            DateTime beforeDate    = DateTime.Now.AddDays(-(date));
            var      CampaingnList = new CallExternalAPI().CallGETApi <IEnumerable <Campaigns> >(CampainEndPoints.testCampaingn);
            var      result        = CampaingnList.Where(x => Convert.ToDateTime(x.endDate) >= DateTime.Now && Convert.ToDateTime(x.created) >= beforeDate).ToList();

            return(result);
        }
        public List <Campaigns> GetAllCloseCampaingn()
        {
            DateTime today         = DateTime.Now;
            var      CampaingnList = new CallExternalAPI().CallGETApi <IEnumerable <Campaigns> >(CampainEndPoints.testCampaingn);
            var      result        = CampaingnList.Where(x => Convert.ToDateTime(x.endDate) <= today || x.procuredAmount >= x.totalAmount)
                                     .ToList();

            return(result);
        }