Esempio n. 1
0
        public async Task <IActionResult> CloseCampaignAsync([FromBody] CampaignDto campaignDto)
        {
            var campaign = await campaignService.GetCampaignAsync(campaignDto.Id);

            if (campaign == null)
            {
                return(NotFound());
            }

            await campaignService.CloseCampaignAsync(campaign);

            return(Ok());
        }