Exemple #1
0
        /// <summary>
        /// Delete Campaign by company ID and Campaign ID. It also deletes the votes from the campaign
        /// </summary>
        /// <param name="companyId"></param>
        /// <param name="campaignId"></param>
        /// <returns></returns>
        public async Task DeleteCampaign(ObjectId companyId, ObjectId campaignId)
        {
            await campaignRepository.Delete(companyId, campaignId);

            await voteRepository.DeleteAll(companyId, campaignId);
        }