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

namespace Grand.Web.Areas.Admin.Interfaces
{
    public interface ILanguageViewModelService
    {
        void PrepareFlagsModel(LanguageModel model);
        Task PrepareCurrenciesModel(LanguageModel model);
        Task<Language> InsertLanguageModel(LanguageModel model);
        Task<Language> UpdateLanguageModel(Language language, LanguageModel model);
        Task<(bool error, string message)> InsertLanguageResourceModel(LanguageResourceModel model);
        Task<(bool error, string message)> UpdateLanguageResourceModel(LanguageResourceModel model);
        Task<(IEnumerable<LanguageResourceModel> languageResourceModels, int totalCount)> PrepareLanguageResourceModel(LanguageResourceFilterModel model, string languageId, int pageIndex, int pageSize);
    }
}
