Refactored and fixed errors
This commit is contained in:
		
							
								
								
									
										16
									
								
								SchengenVisaApi/ApplicationLayer/DependencyInjection.cs
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										16
									
								
								SchengenVisaApi/ApplicationLayer/DependencyInjection.cs
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,16 @@ | ||||
| using ApplicationLayer.VisaApplications.Handlers; | ||||
| using Microsoft.Extensions.DependencyInjection; | ||||
|  | ||||
| namespace ApplicationLayer; | ||||
|  | ||||
| /// Provides methods to add services to DI-container | ||||
| public static class DependencyInjection | ||||
| { | ||||
|     /// Add services for Application layer | ||||
|     public static IServiceCollection AddApplicationLayer(this IServiceCollection services) | ||||
|     { | ||||
|         services.AddScoped<IVisaApplicationsRequestHandler, VisaApplicationRequestsHandler>(); | ||||
|  | ||||
|         return services; | ||||
|     } | ||||
| } | ||||
		Reference in New Issue
	
	Block a user