public IActionResult CheckSponsor([FromBody] Sponsor sponsor)
        {
            BaseResult <SponsorModel> baseResult = new BaseResult <SponsorModel>();

            baseResult.data.sponsor = sponsor;
            bool isSuccess = false;

            sponsor.statusId = 2;
            isSuccess        = _SSponsor.UpdateSponsor(sponsor);
            if (isSuccess)
            {
                return(Json(baseResult));
            }
            else
            {
                baseResult.errMessage = "Sponsor Onaylanamadı!";
                baseResult.statusCode = HttpStatusCode.NotFound;
                return(new NotFoundObjectResult(baseResult));
            }
        }
        private void SponsorTimerDoWork(object state)
        {
            if (!Monitor.TryEnter(state))
            {
                return;
            }
            List <Sponsor> sponsors             = _SSponsor.GetSponsors();
            List <Sponsor> getWaitingActivation = sponsors.Where(x => x.statusId == 3).ToList();

            foreach (var item in getWaitingActivation)
            {
                item.statusId = 2;
                if (!_SSponsor.UpdateSponsor(item))
                {
                    Console.WriteLine("Sponsor Güncellenemedi");
                }
            }
            Monitor.Exit(state);
        }