Exemple #1
0
        public async Task <string> CreateSpreadPosterAsync(int spreadPosterTemplateId, UserIdentifier userIdentifier)
        {
            SpreadPosterTemplate spreadPosterTemplate = SpreadPosterTemplateRepository.Get(spreadPosterTemplateId);

            if (spreadPosterTemplate == null)
            {
                throw new UserFriendlyException(L("ThereNotExitSpreadPostTemplateWithThisId"));
            }
            string path = await CreateSpreadPosterAsync(spreadPosterTemplate, userIdentifier);

            return(path);
        }
Exemple #2
0
 public SpreadPosterTemplate GetDefaultSpreadPosterTemplate(UserIdentifier userIdentifier)
 {
     return(SpreadPosterTemplateRepository.GetAll().Where(model => model.IsDefault == true).FirstOrDefault());
 }