Пример #1
0
 public async Task <int> AddThemeAsync(string theme, string userId)
 {
     return(await _themeRepository.AddThemeAsync(new Theme
     {
         Name = theme.ToLower(),
         CreatedById = userId,
         LastModifiedById = userId,
         DateCreated = DateTime.Now,
         DateLastModified = DateTime.Now
     }));
 }