private CampaignStatuses GetCampaignStatus(int duration) { var currentTime = _timeService.CurrentTime().Data; return(currentTime <= duration ? CampaignStatuses.Active : CampaignStatuses.Ended); }