コード例 #1
0
        private CampaignStatuses GetCampaignStatus(int duration)
        {
            var currentTime = _timeService.CurrentTime().Data;

            return(currentTime <= duration ? CampaignStatuses.Active : CampaignStatuses.Ended);
        }