public async Task <Response> Handle(Request request)
 {
     return(new Response()
     {
         UserSettings = UserSettingsApiModel.FromUserSettings(await _context.UserSettings.FindAsync(request.Id))
     });
 }
Exemple #2
0
            public async Task <Response> Handle(Request request)
            {
                var userSettingss = await _context.UserSettings.ToListAsync();

                return(new Response()
                {
                    UserSettingss = userSettingss.Select(x => UserSettingsApiModel.FromUserSettings(x)).ToList()
                });
            }