CleanCodeResultFilterSample
Sample of using ResultFilter and ValueTuple when building an API with ASP.NET Core
Install / Use
/learn @KevinDockx/CleanCodeResultFilterSampleREADME
Cleaner API Code with ResultFilter and ValueTuple
Examples of:
- mapping two objects into one with AutoMapper
- using a custom reusable ResultFilter to map those objects instead of writing the code in each action that requires it
- using the new ValueTuple (C#7) to pass the two objects to the filter
There's a lot of comments in the code so it should be easy to understand. If needed, additional explanation is available here: https://www.kevindockx.com/cleaner-api-code-with-resultfilter-and-valuetuple/
Related Skills
node-connect
354.0kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
112.2kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
354.0kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
354.0kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
