ildar-shaymukhametov_grandnode-refactorings/Grand.Web/Areas/Admin/Interfaces/ICampaignViewModelService.cs
using Grand.Domain.Messages;
using Grand.Web.Areas.Admin.Models.Messages;
using System.Collections.Generic;
using System.Threading.Tasks;

namespace Grand.Web.Areas.Admin.Interfaces
{
    public interface ICampaignViewModelService
    {
        Task<CampaignModel> PrepareCampaignModel();
        Task<CampaignModel> PrepareCampaignModel(CampaignModel model);
        Task<CampaignModel> PrepareCampaignModel(Campaign campaign);
        Task<(IEnumerable<CampaignModel> campaignModels, int totalCount)> PrepareCampaignModels();
        Task<Campaign> InsertCampaignModel(CampaignModel model);
        Task<Campaign> UpdateCampaignModel(Campaign campaign, CampaignModel model);
    }
}
