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); }
public SpreadPosterTemplate GetDefaultSpreadPosterTemplate(UserIdentifier userIdentifier) { return(SpreadPosterTemplateRepository.GetAll().Where(model => model.IsDefault == true).FirstOrDefault()); }