Coding in Asp.Net 6 Best Practices
1. Make sure every Function has Error Handling. For Example, check if the input is valid of not handle the appropriet Error.
2. Make sure you return from the function as soon as possible. You can do this by first trying to retrieve or check wheather the record exist if not return without executing further Code Instructions.
- This speeds up the Application as the User will be notified with further Instruction on how to proceed.