Exemplo n.º 1
0
 public async Task <Response> Handle(Request request)
 {
     return(new Response()
     {
         UserSettings = UserSettingsApiModel.FromUserSettings(await _context.UserSettings.FindAsync(request.Id))
     });
 }
Exemplo n.º 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()
                });
            }