private Dictionary <int, CustomFormat> AllDictionary() { return(_cache.Get("all", () => { var all = _formatRepository.All().ToDictionary(m => m.Id); AllCustomFormats = all; return all; })); }
private Dictionary <int, CustomFormat> AllDictionary() { return(_cache.Get("all", () => _formatRepository.All().ToDictionary(m => m.Id))); }