public async Task UpdateResourceFileAsync(ResourceFile resFile)
        {
            using (var ctx = GetContext())
            {
                ResourceFile dbBranch = await ctx.ResourceFiles.FindAsync(resFile.Id).ConfigureAwait(false);

                dbBranch.ResourceFileDisplayName = resFile.ResourceFileDisplayName;
                dbBranch.ResourceFileNameFormat = resFile.ResourceFileNameFormat;

                await ctx.SaveChangesAsync().ConfigureAwait(false);
            }
        }
 public async Task UpdateResourceFileAsync(ResourceFile resFile)
 {
     await _dataService.UpdateResourceFileAsync(resFile).ConfigureAwait(false);
     _cacheService.Invalidate(CacheKeys.ResourceFiles);
 }
 public async Task CreateResourceFileAsync(ResourceFile resFile)
 {
     using (var ctx = GetContext())
     {
         ctx.ResourceFiles.Add(resFile);
         await ctx.SaveChangesAsync().ConfigureAwait(false);
     }
 }