/gv-bootcamp-odev2-extension-reflection-attribute

Secon assignment of the Gelecek Varlık Fullstack Bootcamp. Created extensions. Also learned about reflection and attributes.

Primary LanguageC#

Assignment - Week 2

Extension

I created 2 car classes in consoleApp. Created 2 extension methods.

  • GetVehicleMakeModel ( get car make + model )
  • GetObjectType ( gets type of the object ) Called these extensions on console app.

Attribute - Filter

Created a LoginFilter ( ActionFilter ). It is a simple autauthorization filter. Checks if use is admin or superAdmin.

  • If so routes to HomeController-Index.
  • If not routes to HomeController-Error.

Dependency Injection

Work in progress... 🤔