├── .vs └── ReCapProject │ ├── DesignTimeBuild │ └── .dtbcache.v2 │ ├── config │ └── applicationhost.config │ └── v16 │ └── .suo ├── Business ├── Abstract │ ├── IAuthService.cs │ ├── IBrandService.cs │ ├── ICarImageService.cs │ ├── ICarService.cs │ ├── IColorService.cs │ ├── ICustomerService.cs │ ├── IFakeCardService.cs │ ├── IRentalService.cs │ └── IUserService.cs ├── Business.csproj ├── Business.csproj.user ├── Business │ └── BusinessAspects │ │ └── Autofac │ │ └── SecuredOperation.cs ├── Concrete │ ├── AuthManager.cs │ ├── BrandManager.cs │ ├── CarImageManager.cs │ ├── CarManager.cs │ ├── ColorManager.cs │ ├── CustomerManager.cs │ ├── FakeCardManager.cs │ ├── RentalManager.cs │ └── UserManager.cs ├── Constants │ └── Messages.cs ├── DependencyResolves │ └── Autofac │ │ └── AutofacBusinessModule.cs ├── ValidationRules │ └── FluentValidation │ │ ├── BrandValidator.cs │ │ ├── CarImageValidator.cs │ │ ├── CarValidator.cs │ │ ├── ColorValidator.cs │ │ ├── CustomerUpdateValidator.cs │ │ ├── CustomerValidator.cs │ │ ├── RentalValidator.cs │ │ └── UserValidator.cs ├── bin │ └── Debug │ │ └── netstandard2.0 │ │ ├── Business.deps.json │ │ ├── Business.dll │ │ ├── Business.pdb │ │ ├── Core.dll │ │ ├── Core.pdb │ │ ├── DataAccess.dll │ │ ├── DataAccess.pdb │ │ ├── Entities.dll │ │ └── Entities.pdb └── obj │ ├── Business.csproj.nuget.dgspec.json │ ├── Business.csproj.nuget.g.props │ ├── Business.csproj.nuget.g.targets │ ├── Debug │ └── netstandard2.0 │ │ ├── .NETStandard,Version=v2.0.AssemblyAttributes.cs │ │ ├── Business.AssemblyInfo.cs │ │ ├── Business.AssemblyInfoInputs.cache │ │ ├── Business.assets.cache │ │ ├── Business.csproj.CopyComplete │ │ ├── Business.csproj.CoreCompileInputs.cache │ │ ├── Business.csproj.FileListAbsolute.txt │ │ ├── Business.csprojAssemblyReference.cache │ │ ├── Business.dll │ │ └── Business.pdb │ ├── project.assets.json │ └── project.nuget.cache ├── Console ├── Console.csproj ├── Program.cs ├── bin │ └── Debug │ │ └── netcoreapp3.1 │ │ ├── Autofac.Extensions.DependencyInjection.dll │ │ ├── Autofac.Extras.DynamicProxy.dll │ │ ├── Autofac.dll │ │ ├── Business.dll │ │ ├── Business.pdb │ │ ├── Castle.Core.dll │ │ ├── Console.deps.json │ │ ├── Console.dll │ │ ├── Console.exe │ │ ├── Console.pdb │ │ ├── Console.runtimeconfig.dev.json │ │ ├── Console.runtimeconfig.json │ │ ├── Core.dll │ │ ├── Core.pdb │ │ ├── DataAccess.dll │ │ ├── DataAccess.pdb │ │ ├── Entities.dll │ │ ├── Entities.pdb │ │ ├── FluentValidation.dll │ │ ├── Microsoft.AspNetCore.Http.Abstractions.dll │ │ ├── Microsoft.AspNetCore.Http.Features.dll │ │ ├── Microsoft.AspNetCore.Http.dll │ │ ├── Microsoft.AspNetCore.WebUtilities.dll │ │ ├── Microsoft.Bcl.AsyncInterfaces.dll │ │ ├── Microsoft.Bcl.HashCode.dll │ │ ├── Microsoft.Data.SqlClient.dll │ │ ├── Microsoft.EntityFrameworkCore.Abstractions.dll │ │ ├── Microsoft.EntityFrameworkCore.Relational.dll │ │ ├── Microsoft.EntityFrameworkCore.SqlServer.dll │ │ ├── Microsoft.EntityFrameworkCore.dll │ │ ├── Microsoft.Extensions.Caching.Abstractions.dll │ │ ├── Microsoft.Extensions.Caching.Memory.dll │ │ ├── Microsoft.Extensions.Configuration.Abstractions.dll │ │ ├── Microsoft.Extensions.Configuration.Binder.dll │ │ ├── Microsoft.Extensions.Configuration.dll │ │ ├── Microsoft.Extensions.DependencyInjection.Abstractions.dll │ │ ├── Microsoft.Extensions.DependencyInjection.dll │ │ ├── Microsoft.Extensions.Logging.Abstractions.dll │ │ ├── Microsoft.Extensions.Logging.dll │ │ ├── Microsoft.Extensions.ObjectPool.dll │ │ ├── Microsoft.Extensions.Options.dll │ │ ├── Microsoft.Extensions.Primitives.dll │ │ ├── Microsoft.Identity.Client.dll │ │ ├── Microsoft.IdentityModel.JsonWebTokens.dll │ │ ├── Microsoft.IdentityModel.Logging.dll │ │ ├── Microsoft.IdentityModel.Protocols.OpenIdConnect.dll │ │ ├── Microsoft.IdentityModel.Protocols.dll │ │ ├── Microsoft.IdentityModel.Tokens.dll │ │ ├── Microsoft.Net.Http.Headers.dll │ │ ├── Newtonsoft.Json.dll │ │ ├── System.Collections.Immutable.dll │ │ ├── System.Configuration.ConfigurationManager.dll │ │ ├── System.Diagnostics.DiagnosticSource.dll │ │ ├── System.IO.Pipelines.dll │ │ ├── System.IdentityModel.Tokens.Jwt.dll │ │ ├── System.Runtime.Caching.dll │ │ ├── System.Security.Cryptography.ProtectedData.dll │ │ ├── System.Security.Permissions.dll │ │ ├── log4net.dll │ │ └── runtimes │ │ ├── unix │ │ └── lib │ │ │ ├── netcoreapp2.0 │ │ │ └── System.Runtime.Caching.dll │ │ │ └── netcoreapp2.1 │ │ │ └── Microsoft.Data.SqlClient.dll │ │ ├── win-arm64 │ │ └── native │ │ │ └── sni.dll │ │ ├── win-x64 │ │ └── native │ │ │ └── sni.dll │ │ ├── win-x86 │ │ └── native │ │ │ └── sni.dll │ │ └── win │ │ └── lib │ │ ├── netcoreapp2.0 │ │ └── System.Runtime.Caching.dll │ │ ├── netcoreapp2.1 │ │ └── Microsoft.Data.SqlClient.dll │ │ └── netstandard2.0 │ │ └── System.Security.Cryptography.ProtectedData.dll └── obj │ ├── Console.csproj.nuget.dgspec.json │ ├── Console.csproj.nuget.g.props │ ├── Console.csproj.nuget.g.targets │ ├── Debug │ └── netcoreapp3.1 │ │ ├── .NETCoreApp,Version=v3.1.AssemblyAttributes.cs │ │ ├── Console.AssemblyInfo.cs │ │ ├── Console.AssemblyInfoInputs.cache │ │ ├── Console.assets.cache │ │ ├── Console.csproj.CopyComplete │ │ ├── Console.csproj.CoreCompileInputs.cache │ │ ├── Console.csproj.FileListAbsolute.txt │ │ ├── Console.csprojAssemblyReference.cache │ │ ├── Console.dll │ │ ├── Console.genruntimeconfig.cache │ │ ├── Console.pdb │ │ └── apphost.exe │ ├── project.assets.json │ └── project.nuget.cache ├── Core ├── Aspects │ └── Autofac │ │ ├── Caching │ │ ├── CacheAspect.cs │ │ └── CacheRemoveAspect.cs │ │ ├── Exception │ │ └── ExceptionLogAspect.cs │ │ ├── Logging │ │ └── LogAspect.cs │ │ ├── Performance │ │ └── PerformanceAspect.cs │ │ ├── Transaction │ │ └── TransactionScopeAspect.cs │ │ └── Validation │ │ └── ValidationAspect.cs ├── Core.csproj ├── Core.csproj.user ├── CrossCuttingConcerns │ ├── Caching │ │ ├── ICacheManager.cs │ │ └── Microsoft │ │ │ └── MemoryCacheManager.cs │ ├── Logging │ │ ├── Log4Net │ │ │ ├── Layouts │ │ │ │ └── JsonLayout.cs │ │ │ ├── LoggerServiceBase.cs │ │ │ ├── Loggers │ │ │ │ ├── DatabaseLogger.cs │ │ │ │ └── FileLogger.cs │ │ │ └── SerializableLogEvent.cs │ │ ├── LogDetail.cs │ │ ├── LogDetailWithException.cs │ │ └── LogParameter.cs │ └── Validation │ │ └── ValidationTool.cs ├── DataAccess │ ├── EntityFramework │ │ └── EfEntityRepositoryBase.cs │ └── IEntityRepository.cs ├── DependencyResolvers │ └── CoreModule.cs ├── Entities │ ├── Concrete │ │ ├── OperationClaim.cs │ │ ├── User.cs │ │ └── UserOperationClaim.cs │ ├── IDto.cs │ └── IEntity.cs ├── Extensions │ ├── ClaimExtensions.cs │ ├── ClaimsPrincipalExtensions.cs │ ├── ErrorDetails.cs │ ├── ExceptionMiddleware.cs │ ├── ExceptionMiddlewareExtensions.cs │ ├── ServiceCollectionExtensions.cs │ └── ValidationErrorDetails.cs ├── Utilities │ ├── Business │ │ └── BusinessRules.cs │ ├── FileHelper │ │ └── FileHelper.cs │ ├── Interceptors │ │ ├── AspectInterceptorSelector.cs │ │ ├── MethodInterception.cs │ │ └── MethodInterceptionBaseAttribute.cs │ ├── IoC │ │ ├── ICoreModule.cs │ │ └── ServiceTool.cs │ ├── Messages │ │ └── AspectMessages.cs │ ├── Result │ │ ├── DataResult.cs │ │ ├── ErrorDataResult.cs │ │ ├── ErrorResult.cs │ │ ├── IDataResult.cs │ │ ├── IResult.cs │ │ ├── Result.cs │ │ ├── SuccessDataResult.cs │ │ └── SuccessResult.cs │ ├── Security │ │ ├── Encryption │ │ │ ├── SecurityKeyHelper.cs │ │ │ └── SigningCredentialsHelper.cs │ │ ├── Hashing │ │ │ └── HashingHelper.cs │ │ └── JWT │ │ │ ├── AccessToken.cs │ │ │ ├── ITokenHelper.cs │ │ │ ├── JwtHelper.cs │ │ │ └── TokenOptions.cs │ └── Uploaders │ │ └── PathNames.cs ├── bin │ └── Debug │ │ └── netstandard2.0 │ │ ├── Core.deps.json │ │ ├── Core.dll │ │ └── Core.pdb └── obj │ ├── Core.csproj.nuget.dgspec.json │ ├── Core.csproj.nuget.g.props │ ├── Core.csproj.nuget.g.targets │ ├── Debug │ └── netstandard2.0 │ │ ├── .NETStandard,Version=v2.0.AssemblyAttributes.cs │ │ ├── Core.AssemblyInfo.cs │ │ ├── Core.AssemblyInfoInputs.cache │ │ ├── Core.assets.cache │ │ ├── Core.csproj.CoreCompileInputs.cache │ │ ├── Core.csproj.FileListAbsolute.txt │ │ ├── Core.csprojAssemblyReference.cache │ │ ├── Core.dll │ │ └── Core.pdb │ ├── project.assets.json │ └── project.nuget.cache ├── DataAccess ├── Abstract │ ├── IBrandDal.cs │ ├── ICarDal.cs │ ├── ICarImageDal.cs │ ├── IColorDal.cs │ ├── ICustomerDal.cs │ ├── IFakeCardDal.cs │ ├── IRentalDal.cs │ └── IUserDal.cs ├── Concrete │ ├── EntityFramework │ │ ├── EfBrandDal.cs │ │ ├── EfCarDal.cs │ │ ├── EfCarImageDal.cs │ │ ├── EfColorDal.cs │ │ ├── EfCustomerDal.cs │ │ ├── EfFakeCardDal.cs │ │ ├── EfRentalDal.cs │ │ ├── EfUserDal.cs │ │ └── ReCapContext.cs │ └── InMemory │ │ └── InMemoryCarDal.cs ├── DataAccess.csproj ├── bin │ └── Debug │ │ └── netstandard2.0 │ │ ├── Core.dll │ │ ├── Core.pdb │ │ ├── DataAccess.deps.json │ │ ├── DataAccess.dll │ │ ├── DataAccess.pdb │ │ ├── Entities.dll │ │ └── Entities.pdb └── obj │ ├── DataAccess.csproj.nuget.dgspec.json │ ├── DataAccess.csproj.nuget.g.props │ ├── DataAccess.csproj.nuget.g.targets │ ├── Debug │ └── netstandard2.0 │ │ ├── .NETStandard,Version=v2.0.AssemblyAttributes.cs │ │ ├── DataAccess.AssemblyInfo.cs │ │ ├── DataAccess.AssemblyInfoInputs.cache │ │ ├── DataAccess.assets.cache │ │ ├── DataAccess.csproj.CopyComplete │ │ ├── DataAccess.csproj.CoreCompileInputs.cache │ │ ├── DataAccess.csproj.FileListAbsolute.txt │ │ ├── DataAccess.csprojAssemblyReference.cache │ │ ├── DataAccess.dll │ │ └── DataAccess.pdb │ ├── project.assets.json │ └── project.nuget.cache ├── Entities ├── Concrete │ ├── Brand.cs │ ├── Car.cs │ ├── CarImage.cs │ ├── Color.cs │ ├── Customer.cs │ ├── FakeCard.cs │ └── Rental.cs ├── DTOs │ ├── CarDetailDto.cs │ ├── CustomerDetailDto.cs │ ├── RentalDetailDto.cs │ ├── UserForLoginDto.cs │ ├── UserForRegisterDto.cs │ └── UserForUpdateDto.cs ├── Entities.csproj ├── bin │ └── Debug │ │ └── netstandard2.0 │ │ ├── Core.dll │ │ ├── Core.pdb │ │ ├── Entities.deps.json │ │ ├── Entities.dll │ │ └── Entities.pdb └── obj │ ├── Debug │ └── netstandard2.0 │ │ ├── .NETStandard,Version=v2.0.AssemblyAttributes.cs │ │ ├── Entities.AssemblyInfo.cs │ │ ├── Entities.AssemblyInfoInputs.cache │ │ ├── Entities.assets.cache │ │ ├── Entities.csproj.CopyComplete │ │ ├── Entities.csproj.CoreCompileInputs.cache │ │ ├── Entities.csproj.FileListAbsolute.txt │ │ ├── Entities.csprojAssemblyReference.cache │ │ ├── Entities.dll │ │ └── Entities.pdb │ ├── Entities.csproj.nuget.dgspec.json │ ├── Entities.csproj.nuget.g.props │ ├── Entities.csproj.nuget.g.targets │ ├── project.assets.json │ └── project.nuget.cache ├── ReCapProject.sln ├── ReadMe.md └── WebAPI ├── Controllers ├── AuthController.cs ├── BrandsController.cs ├── CarImagesController.cs ├── CarsController.cs ├── ColorsController.cs ├── CustomersController.cs ├── FakeCardsController.cs ├── RentalsController.cs └── UsersController.cs ├── Program.cs ├── Properties └── launchSettings.json ├── Startup.cs ├── WebAPI.csproj ├── WebAPI.csproj.user ├── appsettings.Development.json ├── appsettings.json ├── bin └── Debug │ └── netcoreapp3.1 │ ├── Autofac.Extensions.DependencyInjection.dll │ ├── Autofac.Extras.DynamicProxy.dll │ ├── Autofac.dll │ ├── Business.dll │ ├── Business.pdb │ ├── Castle.Core.dll │ ├── Core.dll │ ├── Core.pdb │ ├── DataAccess.dll │ ├── DataAccess.pdb │ ├── Entities.dll │ ├── Entities.pdb │ ├── FluentValidation.dll │ ├── MicroKnights.Log4NetAdoNetAppender.dll │ ├── Microsoft.AI.DependencyCollector.dll │ ├── Microsoft.AI.EventCounterCollector.dll │ ├── Microsoft.AI.PerfCounterCollector.dll │ ├── Microsoft.AI.ServerTelemetryChannel.dll │ ├── Microsoft.AI.WindowsServer.dll │ ├── Microsoft.ApplicationInsights.AspNetCore.dll │ ├── Microsoft.ApplicationInsights.Log4NetAppender.dll │ ├── Microsoft.ApplicationInsights.dll │ ├── Microsoft.AspNetCore.Authentication.JwtBearer.dll │ ├── Microsoft.AspNetCore.Http.Features.dll │ ├── Microsoft.Bcl.AsyncInterfaces.dll │ ├── Microsoft.Bcl.HashCode.dll │ ├── Microsoft.Build.Framework.dll │ ├── Microsoft.Data.SqlClient.dll │ ├── Microsoft.EntityFrameworkCore.Abstractions.dll │ ├── Microsoft.EntityFrameworkCore.Relational.dll │ ├── Microsoft.EntityFrameworkCore.SqlServer.dll │ ├── Microsoft.EntityFrameworkCore.dll │ ├── Microsoft.Extensions.Caching.Abstractions.dll │ ├── Microsoft.Extensions.Caching.Memory.dll │ ├── Microsoft.Extensions.Configuration.Abstractions.dll │ ├── Microsoft.Extensions.Configuration.Binder.dll │ ├── Microsoft.Extensions.Configuration.FileExtensions.dll │ ├── Microsoft.Extensions.Configuration.Json.dll │ ├── Microsoft.Extensions.Configuration.dll │ ├── Microsoft.Extensions.DependencyInjection.Abstractions.dll │ ├── Microsoft.Extensions.DependencyInjection.dll │ ├── Microsoft.Extensions.DiagnosticAdapter.dll │ ├── Microsoft.Extensions.FileProviders.Abstractions.dll │ ├── Microsoft.Extensions.FileProviders.Physical.dll │ ├── Microsoft.Extensions.FileSystemGlobbing.dll │ ├── Microsoft.Extensions.Logging.Abstractions.dll │ ├── Microsoft.Extensions.Logging.ApplicationInsights.dll │ ├── Microsoft.Extensions.Logging.dll │ ├── Microsoft.Extensions.Options.dll │ ├── Microsoft.Extensions.PlatformAbstractions.dll │ ├── Microsoft.Extensions.Primitives.dll │ ├── Microsoft.Identity.Client.dll │ ├── Microsoft.IdentityModel.JsonWebTokens.dll │ ├── Microsoft.IdentityModel.Logging.dll │ ├── Microsoft.IdentityModel.Protocols.OpenIdConnect.dll │ ├── Microsoft.IdentityModel.Protocols.dll │ ├── Microsoft.IdentityModel.Tokens.dll │ ├── Newtonsoft.Json.dll │ ├── System.Collections.Immutable.dll │ ├── System.Configuration.ConfigurationManager.dll │ ├── System.Diagnostics.DiagnosticSource.dll │ ├── System.Diagnostics.PerformanceCounter.dll │ ├── System.IO.Pipelines.dll │ ├── System.IdentityModel.Tokens.Jwt.dll │ ├── System.Runtime.Caching.dll │ ├── System.Security.Cryptography.ProtectedData.dll │ ├── WebAPI.deps.json │ ├── WebAPI.dll │ ├── WebAPI.exe │ ├── WebAPI.pdb │ ├── WebAPI.runtimeconfig.dev.json │ ├── WebAPI.runtimeconfig.json │ ├── appsettings.Development.json │ ├── appsettings.json │ ├── log4net.config │ ├── log4net.dll │ └── runtimes │ ├── unix │ └── lib │ │ ├── netcoreapp2.0 │ │ └── System.Runtime.Caching.dll │ │ └── netcoreapp2.1 │ │ └── Microsoft.Data.SqlClient.dll │ ├── win-arm64 │ └── native │ │ └── sni.dll │ ├── win-x64 │ └── native │ │ └── sni.dll │ ├── win-x86 │ └── native │ │ └── sni.dll │ └── win │ └── lib │ ├── netcoreapp2.0 │ ├── System.Diagnostics.PerformanceCounter.dll │ └── System.Runtime.Caching.dll │ ├── netcoreapp2.1 │ └── Microsoft.Data.SqlClient.dll │ └── netstandard2.0 │ └── System.Security.Cryptography.ProtectedData.dll ├── log4net.config ├── obj ├── Debug │ └── netcoreapp3.1 │ │ ├── .NETCoreApp,Version=v3.1.AssemblyAttributes.cs │ │ ├── WebAPI.AssemblyInfo.cs │ │ ├── WebAPI.AssemblyInfoInputs.cache │ │ ├── WebAPI.MvcApplicationPartsAssemblyInfo.cache │ │ ├── WebAPI.RazorTargetAssemblyInfo.cache │ │ ├── WebAPI.assets.cache │ │ ├── WebAPI.csproj.CopyComplete │ │ ├── WebAPI.csproj.CoreCompileInputs.cache │ │ ├── WebAPI.csproj.FileListAbsolute.txt │ │ ├── WebAPI.csprojAssemblyReference.cache │ │ ├── WebAPI.dll │ │ ├── WebAPI.genruntimeconfig.cache │ │ ├── WebAPI.pdb │ │ ├── apphost.exe │ │ └── staticwebassets │ │ ├── WebAPI.StaticWebAssets.Manifest.cache │ │ └── WebAPI.StaticWebAssets.xml ├── WebAPI.csproj.nuget.dgspec.json ├── WebAPI.csproj.nuget.g.props ├── WebAPI.csproj.nuget.g.targets ├── project.assets.json └── project.nuget.cache └── wwwroot └── Images ├── 3149509df6104ca38e333aa9a43b5336.jpg ├── 6dcd600067304287957532a07d7ca4f9.jpg ├── b7fd5e138f9644deb1051c357b1b0be4.jpg ├── d5ced2c41afc418ca5031e738d096928.jpg ├── default.jpg ├── e39aa1493c834451bd54f573be04c85a.jpg └── efafce3d9da7463aab36171b1aedfec0.jpg /.vs/ReCapProject/DesignTimeBuild/.dtbcache.v2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MelihVarilci/ReCapProject/2b638d40aadb091a59ff2b9fff5ba0ff1bffdd66/.vs/ReCapProject/DesignTimeBuild/.dtbcache.v2 -------------------------------------------------------------------------------- /.vs/ReCapProject/v16/.suo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MelihVarilci/ReCapProject/2b638d40aadb091a59ff2b9fff5ba0ff1bffdd66/.vs/ReCapProject/v16/.suo -------------------------------------------------------------------------------- /Business/Abstract/IAuthService.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Text; 4 | using Core.Entities.Concrete; 5 | using Core.Utilities.Result; 6 | using Core.Utilities.Security.JWT; 7 | using Entities.DTOs; 8 | 9 | namespace Business.Abstract 10 | { 11 | public interface IAuthService 12 | { 13 | IDataResult Register(UserForRegisterDto userForRegisterDto, string password); 14 | IDataResult Login(UserForLoginDto userForLoginDto); 15 | IDataResult Update(UserForUpdateDto userForUpdate); 16 | IDataResult CreateAccessToken(User user); 17 | IResult UserExists(string email); 18 | 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /Business/Abstract/IBrandService.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Text; 4 | using Core.Utilities.Result; 5 | using Entities.Concrete; 6 | 7 | namespace Business.Abstract 8 | { 9 | public interface IBrandService 10 | { 11 | IDataResult> GetAll(); 12 | IDataResult> GetByBrandId(int id); 13 | IResult Add(Brand brand); 14 | IResult Update(Brand brand); 15 | IResult Delete(Brand brand); 16 | } 17 | } -------------------------------------------------------------------------------- /Business/Abstract/ICarImageService.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Text; 4 | using Core.Utilities.Result; 5 | using Entities.Concrete; 6 | 7 | namespace Business.Abstract 8 | { 9 | public interface ICarImageService 10 | { 11 | IDataResult> GetAll(); 12 | IDataResult Get(int id); 13 | IDataResult> GetCarImagesByCarId(int carId); 14 | IResult Add(CarImage carImage); 15 | IResult Update(CarImage carImage); 16 | IResult Delete(CarImage carImage); 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /Business/Abstract/ICarService.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Text; 4 | using Core.Utilities.Result; 5 | using Entities.Concrete; 6 | using Entities.DTOs; 7 | 8 | namespace Business.Abstract 9 | { 10 | public interface ICarService 11 | { 12 | IDataResult> GetByDailyPrice(decimal min, decimal max); 13 | IDataResult> GetCarsByBrandId(int brandId); 14 | IDataResult> GetCarsByColorId(int colorId); 15 | IDataResult GetCarDetailsByCarId(int carId); 16 | IDataResult> GetAll(); 17 | IDataResult GetById(int carId); 18 | IResult Add(Car car); 19 | IResult Update(Car car); 20 | IResult Delete(Car car); 21 | IDataResult> GetCarDetails(); 22 | IDataResult> GetCarDetailsFilter(int brandId, int colorId); 23 | IResult AddTransactionalTest(Car car); 24 | } 25 | } -------------------------------------------------------------------------------- /Business/Abstract/IColorService.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Text; 4 | using Core.Utilities.Result; 5 | using Entities.Concrete; 6 | 7 | namespace Business.Abstract 8 | { 9 | public interface IColorService 10 | { 11 | IDataResult> GetAll(); 12 | IDataResult> GetByColorId(int id); 13 | IResult Add(Color color); 14 | IResult Update(Color color); 15 | IResult Delete(Color color); 16 | IResult DeleteById(int colorId); 17 | 18 | } 19 | } -------------------------------------------------------------------------------- /Business/Abstract/ICustomerService.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Text; 4 | using Core.Utilities.Result; 5 | using Entities.Concrete; 6 | using Entities.DTOs; 7 | 8 | namespace Business.Abstract 9 | { 10 | public interface ICustomerService 11 | { 12 | IDataResult> GetAll(); 13 | IDataResult> GetByCustomerId(int id); 14 | IDataResult> GetCustomerDetails(); 15 | IDataResult GetByCustomerEmail(string email); 16 | IDataResult GetCustomerDetailById(int customerId); 17 | IResult Add(Customer customer); 18 | IResult Update(Customer customer); 19 | IResult Delete(Customer customer); 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /Business/Abstract/IFakeCardService.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Text; 4 | using Core.Utilities.Result; 5 | using Entities.Concrete; 6 | 7 | namespace Business.Abstract 8 | { 9 | public interface IFakeCardService 10 | { 11 | IDataResult> GetByCardNumber(string cardNumber); 12 | IDataResult> GetAll(); 13 | IDataResult> GetCardsByCustomerId(int customerId); 14 | IDataResult GetById(int cardId); 15 | IResult IsCardExist(FakeCard fakeCard); 16 | IResult Add(FakeCard fakeCard); 17 | IResult Delete(FakeCard fakeCard); 18 | IResult Update(FakeCard fakeCard); 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /Business/Abstract/IRentalService.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Text; 4 | using Core.Utilities.Result; 5 | using Entities.Concrete; 6 | using Entities.DTOs; 7 | 8 | namespace Business.Abstract 9 | { 10 | public interface IRentalService 11 | { 12 | IDataResult> GetAll(); 13 | IDataResult> GetByRentalId(int id); 14 | IDataResult> GetByCarId(int id); 15 | IDataResult> GetByCustomerId(int id); 16 | IDataResult> GetByRentDate(DateTime first, DateTime last); 17 | IDataResult CheckReturnDate(int carId); 18 | IDataResult> GetRentalDetails(); 19 | IDataResult> GetRentalDetailsByCarId(int carId); 20 | IDataResult> GetRentalDetailsByCustomerId(int customerId); 21 | IResult Add(Rental rental); 22 | IResult Update(Rental rental); 23 | IResult Delete(Rental rental); 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /Business/Abstract/IUserService.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Text; 4 | using Core.Entities.Concrete; 5 | using Core.Utilities.Result; 6 | using Entities.Concrete; 7 | 8 | namespace Business.Abstract 9 | { 10 | public interface IUserService 11 | { 12 | IDataResult> GetAll(); 13 | IDataResult> GetByCustomerId(int id); 14 | IDataResult> GetClaims(User user); 15 | IDataResult GetByMail(string email); 16 | IResult Add(User user); 17 | IResult Update(User user); 18 | IResult Delete(User user); 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /Business/Business.csproj: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | netstandard2.0 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | -------------------------------------------------------------------------------- /Business/Business.csproj.user: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | false 5 | 6 | -------------------------------------------------------------------------------- /Business/Business/BusinessAspects/Autofac/SecuredOperation.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using Business.Constants; 3 | using Castle.DynamicProxy; 4 | using Core.Extensions; 5 | using Core.Utilities.Interceptors; 6 | using Core.Utilities.IoC; 7 | using Microsoft.AspNetCore.Http; 8 | using Microsoft.Extensions.DependencyInjection; 9 | 10 | namespace Business.Business.BusinessAspects.Autofac 11 | { 12 | //JWT 13 | public class SecuredOperation : MethodInterception 14 | { 15 | private string[] _roles; 16 | private IHttpContextAccessor _httpContextAccessor; 17 | 18 | public SecuredOperation(string roles) 19 | { 20 | _roles = roles.Split(','); 21 | _httpContextAccessor = ServiceTool.ServiceProvider.GetService(); 22 | } 23 | protected override void OnBefore(IInvocation invocation) 24 | { 25 | var roleClaims = _httpContextAccessor.HttpContext.User.ClaimRoles(); 26 | foreach (var role in _roles) 27 | { 28 | if (roleClaims.Contains(role)) 29 | { 30 | return; 31 | } 32 | } 33 | throw new Exception(Messages.AuthorizationDenied); 34 | } 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /Business/Concrete/BrandManager.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Text; 4 | using Business.Abstract; 5 | using Business.Constants; 6 | using Business.ValidationRules.FluentValidation; 7 | using Core.Aspects.Autofac.Validation; 8 | using Core.Utilities.Result; 9 | using DataAccess.Concrete.EntityFramework; 10 | using Entities.Concrete; 11 | 12 | namespace Business.Concrete 13 | { 14 | public class BrandManager : IBrandService 15 | { 16 | IBrandDal _brand; 17 | 18 | public BrandManager(IBrandDal brand) 19 | { 20 | _brand = brand; 21 | } 22 | 23 | public IDataResult> GetAll() 24 | { 25 | return new SuccessDataResult>(_brand.GetAll(),Messages.BrandListed); 26 | } 27 | 28 | public IDataResult> GetByBrandId(int id) 29 | { 30 | return new SuccessDataResult>(_brand.GetAll(p => p.BrandId == id),Messages.BrandListed); 31 | } 32 | 33 | [ValidationAspect(typeof(BrandValidator))] 34 | public IResult Add(Brand brand) 35 | { 36 | _brand.Add(brand); 37 | return new SuccessResult(Messages.BrandAdded); 38 | } 39 | 40 | public IResult Update(Brand brand) 41 | { 42 | _brand.Update(brand); 43 | return new SuccessResult(Messages.BrandUpdated); 44 | } 45 | 46 | public IResult Delete(Brand brand) 47 | { 48 | _brand.Delete(brand); 49 | return new SuccessResult(Messages.BrandUpdated); 50 | } 51 | } 52 | } -------------------------------------------------------------------------------- /Business/Concrete/ColorManager.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Text; 4 | using Business.Abstract; 5 | using Business.Constants; 6 | using Business.ValidationRules.FluentValidation; 7 | using Core.Aspects.Autofac.Validation; 8 | using Core.Utilities.Result; 9 | using DataAccess.Abstract; 10 | using Entities.Concrete; 11 | 12 | namespace Business.Concrete 13 | { 14 | public class ColorManager : IColorService 15 | { 16 | IColorDal _color; 17 | 18 | public ColorManager(IColorDal color) 19 | { 20 | _color = color; 21 | } 22 | 23 | public IDataResult> GetAll() 24 | { 25 | return new SuccessDataResult>(_color.GetAll(), Messages.ColorListed); 26 | } 27 | 28 | public IDataResult> GetByColorId(int id) 29 | { 30 | return new SuccessDataResult>(_color.GetAll(p => p.ColorId == id), Messages.ColorListed); 31 | } 32 | 33 | [ValidationAspect(typeof(ColorValidator))] 34 | public IResult Add(Color brand) 35 | { 36 | _color.Add(brand); 37 | return new SuccessResult(Messages.ColorAdded); 38 | } 39 | 40 | public IResult Update(Color brand) 41 | { 42 | _color.Update(brand); 43 | return new SuccessResult(Messages.ColorUpdated); 44 | } 45 | 46 | public IResult Delete(Color brand) 47 | { 48 | _color.Delete(brand); 49 | return new SuccessResult(Messages.ColorDeleted); 50 | } 51 | 52 | public IResult DeleteById(int colorId) 53 | { 54 | var result = _color.Get(c => c.ColorId == colorId); 55 | if (result != null) 56 | { 57 | _color.Delete(result); 58 | return new SuccessResult(Messages.ColorDeleted); 59 | } 60 | 61 | return new ErrorResult(); 62 | } 63 | } 64 | } -------------------------------------------------------------------------------- /Business/Concrete/UserManager.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Text; 4 | using Business.Abstract; 5 | using Business.Constants; 6 | using Business.ValidationRules.FluentValidation; 7 | using Core.Aspects.Autofac.Validation; 8 | using Core.Entities.Concrete; 9 | using Core.Utilities.Result; 10 | using DataAccess.Abstract; 11 | using Microsoft.Data.SqlClient; 12 | 13 | namespace Business.Concrete 14 | { 15 | public class UserManager:IUserService 16 | { 17 | IUserDal _userDal; 18 | 19 | public UserManager(IUserDal userDal) 20 | { 21 | _userDal = userDal; 22 | } 23 | 24 | public IDataResult> GetAll() 25 | { 26 | return new SuccessDataResult>(_userDal.GetAll(),Messages.UserListed); 27 | } 28 | 29 | public IDataResult> GetByCustomerId(int id) 30 | { 31 | return new SuccessDataResult>(_userDal.GetAll(u => u.UserId == id),Messages.UserListed); 32 | } 33 | 34 | public IDataResult> GetClaims(User user) 35 | { 36 | return new SuccessDataResult>(_userDal.GetClaims(user)); 37 | } 38 | 39 | public IDataResult GetByMail(string email) 40 | { 41 | return new SuccessDataResult(_userDal.Get(u => u.Email == email)); 42 | } 43 | 44 | [ValidationAspect(typeof(UserValidator))] 45 | public IResult Add(User user) 46 | { 47 | _userDal.Add(user); 48 | return new SuccessResult(Messages.UserAdded); 49 | } 50 | 51 | public IResult Update(User user) 52 | { 53 | _userDal.Update(user); 54 | return new SuccessResult(Messages.UserUpdated); 55 | } 56 | 57 | public IResult Delete(User user) 58 | { 59 | _userDal.Delete(user); 60 | return new SuccessResult(Messages.UserDeleted); 61 | } 62 | } 63 | } 64 | -------------------------------------------------------------------------------- /Business/ValidationRules/FluentValidation/BrandValidator.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Text; 4 | using Entities.Concrete; 5 | using FluentValidation; 6 | 7 | namespace Business.ValidationRules.FluentValidation 8 | { 9 | public class BrandValidator:AbstractValidator 10 | { 11 | public BrandValidator() 12 | { 13 | RuleFor(b => b.BrandName).MinimumLength(3).WithMessage("Marka adı en az 3 karakter uzunluğunda olmalıdır."); 14 | } 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /Business/ValidationRules/FluentValidation/CarImageValidator.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Text; 4 | using Entities.Concrete; 5 | using FluentValidation; 6 | 7 | namespace Business.ValidationRules.FluentValidation 8 | { 9 | public class CarImageValidator:AbstractValidator 10 | { 11 | public CarImageValidator() 12 | { 13 | //RuleFor(c => c.Date).Empty(); 14 | //RuleFor(c => c.ImagePath).NotEmpty(); 15 | RuleFor(c => c.CarId).NotEmpty(); 16 | 17 | } 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /Business/ValidationRules/FluentValidation/CarValidator.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Text; 4 | using Entities.Concrete; 5 | using FluentValidation; 6 | 7 | namespace Business.ValidationRules.FluentValidation 8 | { 9 | public class CarValidator : AbstractValidator 10 | { 11 | public CarValidator() 12 | { 13 | RuleFor(car => car.CarDescription).MinimumLength(2).WithMessage("Araç adı en az 2 karakter uzunluğunda olmalıdır."); 14 | RuleFor(car => car.CarDescription).NotEmpty(); 15 | RuleFor(car => car.CarDescription).NotNull(); 16 | 17 | RuleFor(car => car.CarDailyPrice).NotEmpty(); 18 | RuleFor(car => car.CarDailyPrice).GreaterThan(0).WithMessage("Aracın günlük fiyatı 0'dan büyük olmalıdır."); 19 | RuleFor(car => car.CarDailyPrice).GreaterThan(100).When(car => car.CarId == 1).WithMessage("1 id'li aracın günlük fiyatı 100'den büyük olmalıdır."); 20 | 21 | RuleFor(car => car.CarModelYear).LessThan(DateTime.Now.Year); 22 | RuleFor(car => car.CarModelYear).NotEmpty(); 23 | 24 | RuleFor(car => car.BrandId).NotEmpty(); 25 | RuleFor(car => car.BrandId).GreaterThan(0).WithMessage("Araç marka numarası (Id) en az 0 karakter uzunluğunda olmalıdır."); 26 | 27 | RuleFor(car => car.ColorId).NotEmpty(); 28 | RuleFor(car => car.ColorId).GreaterThan(0).WithMessage("Araç renk numarası (Id) en az 0 karakter uzunluğunda olmalıdır."); 29 | } 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /Business/ValidationRules/FluentValidation/ColorValidator.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Text; 4 | using Entities.Concrete; 5 | using FluentValidation; 6 | 7 | namespace Business.ValidationRules.FluentValidation 8 | { 9 | public class ColorValidator:AbstractValidator 10 | { 11 | public ColorValidator() 12 | { 13 | RuleFor(c => c.ColorName).MinimumLength(2).WithMessage("Renk adı en az 2 karakter uzunluğunda olmalıdır."); 14 | } 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /Business/ValidationRules/FluentValidation/CustomerUpdateValidator.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Text; 4 | using Entities.DTOs; 5 | using FluentValidation; 6 | 7 | namespace Business.ValidationRules.FluentValidation 8 | { 9 | public class CustomerUpdateValidator : AbstractValidator 10 | { 11 | public CustomerUpdateValidator() 12 | { 13 | RuleFor(customerDetail => customerDetail.CustomerId).NotEmpty(); 14 | RuleFor(customerDetail => customerDetail.UserId).NotEmpty(); 15 | RuleFor(customerDetail => customerDetail.FirstName).NotEmpty(); 16 | RuleFor(customerDetail => customerDetail.LastName).NotEmpty(); 17 | RuleFor(customerDetail => customerDetail.Email).NotEmpty(); 18 | } 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /Business/ValidationRules/FluentValidation/CustomerValidator.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Text; 4 | using Entities.Concrete; 5 | using FluentValidation; 6 | 7 | namespace Business.ValidationRules.FluentValidation 8 | { 9 | public class CustomerValidator : AbstractValidator 10 | { 11 | public CustomerValidator() 12 | { 13 | RuleFor(cus => cus.UserId).NotEmpty(); 14 | RuleFor(cus => cus.CompanyName).MinimumLength(2).WithMessage("Şirket adı en az 2 karakter uzunluğunda olmalıdır."); 15 | } 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /Business/ValidationRules/FluentValidation/RentalValidator.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Text; 4 | using Entities.Concrete; 5 | using FluentValidation; 6 | 7 | namespace Business.ValidationRules 8 | { 9 | public class RentalValidator : AbstractValidator 10 | { 11 | public RentalValidator() 12 | { 13 | RuleFor(ren => ren.CustomerId).NotEmpty(); 14 | RuleFor(ren => ren.CarId).NotEmpty(); 15 | RuleFor(ren => ren.RentDate).NotEmpty(); 16 | } 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /Business/ValidationRules/FluentValidation/UserValidator.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Text; 4 | using Core.Entities.Concrete; 5 | using FluentValidation; 6 | 7 | namespace Business.ValidationRules.FluentValidation 8 | { 9 | public class UserValidator : AbstractValidator 10 | { 11 | public UserValidator() 12 | { 13 | RuleFor(us => us.Email).NotEmpty(); 14 | RuleFor(us => us.FirstName).NotEmpty().MinimumLength(3); 15 | RuleFor(us => us.LastName).NotEmpty().MinimumLength(2); 16 | //RuleFor(us => us.Password).NotEmpty().MinimumLength(5); 17 | 18 | } 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /Business/bin/Debug/netstandard2.0/Business.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MelihVarilci/ReCapProject/2b638d40aadb091a59ff2b9fff5ba0ff1bffdd66/Business/bin/Debug/netstandard2.0/Business.dll -------------------------------------------------------------------------------- /Business/bin/Debug/netstandard2.0/Business.pdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MelihVarilci/ReCapProject/2b638d40aadb091a59ff2b9fff5ba0ff1bffdd66/Business/bin/Debug/netstandard2.0/Business.pdb -------------------------------------------------------------------------------- /Business/bin/Debug/netstandard2.0/Core.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MelihVarilci/ReCapProject/2b638d40aadb091a59ff2b9fff5ba0ff1bffdd66/Business/bin/Debug/netstandard2.0/Core.dll -------------------------------------------------------------------------------- /Business/bin/Debug/netstandard2.0/Core.pdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MelihVarilci/ReCapProject/2b638d40aadb091a59ff2b9fff5ba0ff1bffdd66/Business/bin/Debug/netstandard2.0/Core.pdb -------------------------------------------------------------------------------- /Business/bin/Debug/netstandard2.0/DataAccess.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MelihVarilci/ReCapProject/2b638d40aadb091a59ff2b9fff5ba0ff1bffdd66/Business/bin/Debug/netstandard2.0/DataAccess.dll -------------------------------------------------------------------------------- /Business/bin/Debug/netstandard2.0/DataAccess.pdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MelihVarilci/ReCapProject/2b638d40aadb091a59ff2b9fff5ba0ff1bffdd66/Business/bin/Debug/netstandard2.0/DataAccess.pdb -------------------------------------------------------------------------------- /Business/bin/Debug/netstandard2.0/Entities.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MelihVarilci/ReCapProject/2b638d40aadb091a59ff2b9fff5ba0ff1bffdd66/Business/bin/Debug/netstandard2.0/Entities.dll -------------------------------------------------------------------------------- /Business/bin/Debug/netstandard2.0/Entities.pdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MelihVarilci/ReCapProject/2b638d40aadb091a59ff2b9fff5ba0ff1bffdd66/Business/bin/Debug/netstandard2.0/Entities.pdb -------------------------------------------------------------------------------- /Business/obj/Business.csproj.nuget.g.props: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | True 5 | NuGet 6 | $(MSBuildThisFileDirectory)project.assets.json 7 | $(UserProfile)\.nuget\packages\ 8 | C:\Users\varil\.nuget\packages\ 9 | PackageReference 10 | 5.9.1 11 | 12 | 13 | 14 | 15 | 16 | $(MSBuildAllProjects);$(MSBuildThisFileFullPath) 17 | 18 | -------------------------------------------------------------------------------- /Business/obj/Business.csproj.nuget.g.targets: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | $(MSBuildAllProjects);$(MSBuildThisFileFullPath) 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /Business/obj/Debug/netstandard2.0/.NETStandard,Version=v2.0.AssemblyAttributes.cs: -------------------------------------------------------------------------------- 1 | // 2 | using System; 3 | using System.Reflection; 4 | [assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETStandard,Version=v2.0", FrameworkDisplayName = "")] 5 | -------------------------------------------------------------------------------- /Business/obj/Debug/netstandard2.0/Business.AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | //------------------------------------------------------------------------------ 2 | // 3 | // This code was generated by a tool. 4 | // Runtime Version:4.0.30319.42000 5 | // 6 | // Changes to this file may cause incorrect behavior and will be lost if 7 | // the code is regenerated. 8 | // 9 | //------------------------------------------------------------------------------ 10 | 11 | using System; 12 | using System.Reflection; 13 | 14 | [assembly: System.Reflection.AssemblyCompanyAttribute("Business")] 15 | [assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")] 16 | [assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")] 17 | [assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0")] 18 | [assembly: System.Reflection.AssemblyProductAttribute("Business")] 19 | [assembly: System.Reflection.AssemblyTitleAttribute("Business")] 20 | [assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")] 21 | 22 | // Generated by the MSBuild WriteCodeFragment class. 23 | 24 | -------------------------------------------------------------------------------- /Business/obj/Debug/netstandard2.0/Business.AssemblyInfoInputs.cache: -------------------------------------------------------------------------------- 1 | 4faf343f83fe4ecc4cccc443e97716d83733f999 2 | -------------------------------------------------------------------------------- /Business/obj/Debug/netstandard2.0/Business.assets.cache: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MelihVarilci/ReCapProject/2b638d40aadb091a59ff2b9fff5ba0ff1bffdd66/Business/obj/Debug/netstandard2.0/Business.assets.cache -------------------------------------------------------------------------------- /Business/obj/Debug/netstandard2.0/Business.csproj.CopyComplete: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MelihVarilci/ReCapProject/2b638d40aadb091a59ff2b9fff5ba0ff1bffdd66/Business/obj/Debug/netstandard2.0/Business.csproj.CopyComplete -------------------------------------------------------------------------------- /Business/obj/Debug/netstandard2.0/Business.csproj.CoreCompileInputs.cache: -------------------------------------------------------------------------------- 1 | c71fd7096c20935f5c4e9cab557a7f4082cf7f17 2 | -------------------------------------------------------------------------------- /Business/obj/Debug/netstandard2.0/Business.csproj.FileListAbsolute.txt: -------------------------------------------------------------------------------- 1 | C:\Users\varil\source\repos\ReCapProject\Business\obj\Debug\netstandard2.0\Business.csprojAssemblyReference.cache 2 | C:\Users\varil\source\repos\ReCapProject\Business\obj\Debug\netstandard2.0\Business.AssemblyInfoInputs.cache 3 | C:\Users\varil\source\repos\ReCapProject\Business\obj\Debug\netstandard2.0\Business.AssemblyInfo.cs 4 | C:\Users\varil\source\repos\ReCapProject\Business\obj\Debug\netstandard2.0\Business.csproj.CoreCompileInputs.cache 5 | C:\Users\varil\source\repos\ReCapProject\Business\bin\Debug\netstandard2.0\Business.deps.json 6 | C:\Users\varil\source\repos\ReCapProject\Business\bin\Debug\netstandard2.0\Business.dll 7 | C:\Users\varil\source\repos\ReCapProject\Business\bin\Debug\netstandard2.0\Business.pdb 8 | C:\Users\varil\source\repos\ReCapProject\Business\bin\Debug\netstandard2.0\Core.dll 9 | C:\Users\varil\source\repos\ReCapProject\Business\bin\Debug\netstandard2.0\DataAccess.dll 10 | C:\Users\varil\source\repos\ReCapProject\Business\bin\Debug\netstandard2.0\Entities.dll 11 | C:\Users\varil\source\repos\ReCapProject\Business\bin\Debug\netstandard2.0\DataAccess.pdb 12 | C:\Users\varil\source\repos\ReCapProject\Business\bin\Debug\netstandard2.0\Entities.pdb 13 | C:\Users\varil\source\repos\ReCapProject\Business\bin\Debug\netstandard2.0\Core.pdb 14 | C:\Users\varil\source\repos\ReCapProject\Business\obj\Debug\netstandard2.0\Business.csproj.CopyComplete 15 | C:\Users\varil\source\repos\ReCapProject\Business\obj\Debug\netstandard2.0\Business.dll 16 | C:\Users\varil\source\repos\ReCapProject\Business\obj\Debug\netstandard2.0\Business.pdb 17 | -------------------------------------------------------------------------------- /Business/obj/Debug/netstandard2.0/Business.csprojAssemblyReference.cache: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MelihVarilci/ReCapProject/2b638d40aadb091a59ff2b9fff5ba0ff1bffdd66/Business/obj/Debug/netstandard2.0/Business.csprojAssemblyReference.cache -------------------------------------------------------------------------------- /Business/obj/Debug/netstandard2.0/Business.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MelihVarilci/ReCapProject/2b638d40aadb091a59ff2b9fff5ba0ff1bffdd66/Business/obj/Debug/netstandard2.0/Business.dll -------------------------------------------------------------------------------- /Business/obj/Debug/netstandard2.0/Business.pdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MelihVarilci/ReCapProject/2b638d40aadb091a59ff2b9fff5ba0ff1bffdd66/Business/obj/Debug/netstandard2.0/Business.pdb -------------------------------------------------------------------------------- /Console/Console.csproj: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Exe 5 | netcoreapp3.1 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /Console/bin/Debug/netcoreapp3.1/Autofac.Extensions.DependencyInjection.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MelihVarilci/ReCapProject/2b638d40aadb091a59ff2b9fff5ba0ff1bffdd66/Console/bin/Debug/netcoreapp3.1/Autofac.Extensions.DependencyInjection.dll -------------------------------------------------------------------------------- /Console/bin/Debug/netcoreapp3.1/Autofac.Extras.DynamicProxy.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MelihVarilci/ReCapProject/2b638d40aadb091a59ff2b9fff5ba0ff1bffdd66/Console/bin/Debug/netcoreapp3.1/Autofac.Extras.DynamicProxy.dll -------------------------------------------------------------------------------- /Console/bin/Debug/netcoreapp3.1/Autofac.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MelihVarilci/ReCapProject/2b638d40aadb091a59ff2b9fff5ba0ff1bffdd66/Console/bin/Debug/netcoreapp3.1/Autofac.dll -------------------------------------------------------------------------------- /Console/bin/Debug/netcoreapp3.1/Business.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MelihVarilci/ReCapProject/2b638d40aadb091a59ff2b9fff5ba0ff1bffdd66/Console/bin/Debug/netcoreapp3.1/Business.dll -------------------------------------------------------------------------------- /Console/bin/Debug/netcoreapp3.1/Business.pdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MelihVarilci/ReCapProject/2b638d40aadb091a59ff2b9fff5ba0ff1bffdd66/Console/bin/Debug/netcoreapp3.1/Business.pdb -------------------------------------------------------------------------------- /Console/bin/Debug/netcoreapp3.1/Castle.Core.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MelihVarilci/ReCapProject/2b638d40aadb091a59ff2b9fff5ba0ff1bffdd66/Console/bin/Debug/netcoreapp3.1/Castle.Core.dll -------------------------------------------------------------------------------- /Console/bin/Debug/netcoreapp3.1/Console.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MelihVarilci/ReCapProject/2b638d40aadb091a59ff2b9fff5ba0ff1bffdd66/Console/bin/Debug/netcoreapp3.1/Console.dll -------------------------------------------------------------------------------- /Console/bin/Debug/netcoreapp3.1/Console.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MelihVarilci/ReCapProject/2b638d40aadb091a59ff2b9fff5ba0ff1bffdd66/Console/bin/Debug/netcoreapp3.1/Console.exe -------------------------------------------------------------------------------- /Console/bin/Debug/netcoreapp3.1/Console.pdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MelihVarilci/ReCapProject/2b638d40aadb091a59ff2b9fff5ba0ff1bffdd66/Console/bin/Debug/netcoreapp3.1/Console.pdb -------------------------------------------------------------------------------- /Console/bin/Debug/netcoreapp3.1/Console.runtimeconfig.dev.json: -------------------------------------------------------------------------------- 1 | { 2 | "runtimeOptions": { 3 | "additionalProbingPaths": [ 4 | "C:\\Users\\varil\\.dotnet\\store\\|arch|\\|tfm|", 5 | "C:\\Users\\varil\\.nuget\\packages" 6 | ] 7 | } 8 | } -------------------------------------------------------------------------------- /Console/bin/Debug/netcoreapp3.1/Console.runtimeconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "runtimeOptions": { 3 | "tfm": "netcoreapp3.1", 4 | "framework": { 5 | "name": "Microsoft.NETCore.App", 6 | "version": "3.1.0" 7 | } 8 | } 9 | } -------------------------------------------------------------------------------- /Console/bin/Debug/netcoreapp3.1/Core.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MelihVarilci/ReCapProject/2b638d40aadb091a59ff2b9fff5ba0ff1bffdd66/Console/bin/Debug/netcoreapp3.1/Core.dll -------------------------------------------------------------------------------- /Console/bin/Debug/netcoreapp3.1/Core.pdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MelihVarilci/ReCapProject/2b638d40aadb091a59ff2b9fff5ba0ff1bffdd66/Console/bin/Debug/netcoreapp3.1/Core.pdb -------------------------------------------------------------------------------- /Console/bin/Debug/netcoreapp3.1/DataAccess.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MelihVarilci/ReCapProject/2b638d40aadb091a59ff2b9fff5ba0ff1bffdd66/Console/bin/Debug/netcoreapp3.1/DataAccess.dll -------------------------------------------------------------------------------- /Console/bin/Debug/netcoreapp3.1/DataAccess.pdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MelihVarilci/ReCapProject/2b638d40aadb091a59ff2b9fff5ba0ff1bffdd66/Console/bin/Debug/netcoreapp3.1/DataAccess.pdb -------------------------------------------------------------------------------- /Console/bin/Debug/netcoreapp3.1/Entities.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MelihVarilci/ReCapProject/2b638d40aadb091a59ff2b9fff5ba0ff1bffdd66/Console/bin/Debug/netcoreapp3.1/Entities.dll -------------------------------------------------------------------------------- /Console/bin/Debug/netcoreapp3.1/Entities.pdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MelihVarilci/ReCapProject/2b638d40aadb091a59ff2b9fff5ba0ff1bffdd66/Console/bin/Debug/netcoreapp3.1/Entities.pdb -------------------------------------------------------------------------------- /Console/bin/Debug/netcoreapp3.1/FluentValidation.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MelihVarilci/ReCapProject/2b638d40aadb091a59ff2b9fff5ba0ff1bffdd66/Console/bin/Debug/netcoreapp3.1/FluentValidation.dll -------------------------------------------------------------------------------- /Console/bin/Debug/netcoreapp3.1/Microsoft.AspNetCore.Http.Abstractions.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MelihVarilci/ReCapProject/2b638d40aadb091a59ff2b9fff5ba0ff1bffdd66/Console/bin/Debug/netcoreapp3.1/Microsoft.AspNetCore.Http.Abstractions.dll -------------------------------------------------------------------------------- /Console/bin/Debug/netcoreapp3.1/Microsoft.AspNetCore.Http.Features.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MelihVarilci/ReCapProject/2b638d40aadb091a59ff2b9fff5ba0ff1bffdd66/Console/bin/Debug/netcoreapp3.1/Microsoft.AspNetCore.Http.Features.dll -------------------------------------------------------------------------------- /Console/bin/Debug/netcoreapp3.1/Microsoft.AspNetCore.Http.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MelihVarilci/ReCapProject/2b638d40aadb091a59ff2b9fff5ba0ff1bffdd66/Console/bin/Debug/netcoreapp3.1/Microsoft.AspNetCore.Http.dll -------------------------------------------------------------------------------- /Console/bin/Debug/netcoreapp3.1/Microsoft.AspNetCore.WebUtilities.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MelihVarilci/ReCapProject/2b638d40aadb091a59ff2b9fff5ba0ff1bffdd66/Console/bin/Debug/netcoreapp3.1/Microsoft.AspNetCore.WebUtilities.dll -------------------------------------------------------------------------------- /Console/bin/Debug/netcoreapp3.1/Microsoft.Bcl.AsyncInterfaces.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MelihVarilci/ReCapProject/2b638d40aadb091a59ff2b9fff5ba0ff1bffdd66/Console/bin/Debug/netcoreapp3.1/Microsoft.Bcl.AsyncInterfaces.dll -------------------------------------------------------------------------------- /Console/bin/Debug/netcoreapp3.1/Microsoft.Bcl.HashCode.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MelihVarilci/ReCapProject/2b638d40aadb091a59ff2b9fff5ba0ff1bffdd66/Console/bin/Debug/netcoreapp3.1/Microsoft.Bcl.HashCode.dll -------------------------------------------------------------------------------- /Console/bin/Debug/netcoreapp3.1/Microsoft.Data.SqlClient.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MelihVarilci/ReCapProject/2b638d40aadb091a59ff2b9fff5ba0ff1bffdd66/Console/bin/Debug/netcoreapp3.1/Microsoft.Data.SqlClient.dll -------------------------------------------------------------------------------- /Console/bin/Debug/netcoreapp3.1/Microsoft.EntityFrameworkCore.Abstractions.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MelihVarilci/ReCapProject/2b638d40aadb091a59ff2b9fff5ba0ff1bffdd66/Console/bin/Debug/netcoreapp3.1/Microsoft.EntityFrameworkCore.Abstractions.dll -------------------------------------------------------------------------------- /Console/bin/Debug/netcoreapp3.1/Microsoft.EntityFrameworkCore.Relational.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MelihVarilci/ReCapProject/2b638d40aadb091a59ff2b9fff5ba0ff1bffdd66/Console/bin/Debug/netcoreapp3.1/Microsoft.EntityFrameworkCore.Relational.dll -------------------------------------------------------------------------------- /Console/bin/Debug/netcoreapp3.1/Microsoft.EntityFrameworkCore.SqlServer.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MelihVarilci/ReCapProject/2b638d40aadb091a59ff2b9fff5ba0ff1bffdd66/Console/bin/Debug/netcoreapp3.1/Microsoft.EntityFrameworkCore.SqlServer.dll -------------------------------------------------------------------------------- /Console/bin/Debug/netcoreapp3.1/Microsoft.EntityFrameworkCore.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MelihVarilci/ReCapProject/2b638d40aadb091a59ff2b9fff5ba0ff1bffdd66/Console/bin/Debug/netcoreapp3.1/Microsoft.EntityFrameworkCore.dll -------------------------------------------------------------------------------- /Console/bin/Debug/netcoreapp3.1/Microsoft.Extensions.Caching.Abstractions.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MelihVarilci/ReCapProject/2b638d40aadb091a59ff2b9fff5ba0ff1bffdd66/Console/bin/Debug/netcoreapp3.1/Microsoft.Extensions.Caching.Abstractions.dll -------------------------------------------------------------------------------- /Console/bin/Debug/netcoreapp3.1/Microsoft.Extensions.Caching.Memory.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MelihVarilci/ReCapProject/2b638d40aadb091a59ff2b9fff5ba0ff1bffdd66/Console/bin/Debug/netcoreapp3.1/Microsoft.Extensions.Caching.Memory.dll -------------------------------------------------------------------------------- /Console/bin/Debug/netcoreapp3.1/Microsoft.Extensions.Configuration.Abstractions.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MelihVarilci/ReCapProject/2b638d40aadb091a59ff2b9fff5ba0ff1bffdd66/Console/bin/Debug/netcoreapp3.1/Microsoft.Extensions.Configuration.Abstractions.dll -------------------------------------------------------------------------------- /Console/bin/Debug/netcoreapp3.1/Microsoft.Extensions.Configuration.Binder.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MelihVarilci/ReCapProject/2b638d40aadb091a59ff2b9fff5ba0ff1bffdd66/Console/bin/Debug/netcoreapp3.1/Microsoft.Extensions.Configuration.Binder.dll -------------------------------------------------------------------------------- /Console/bin/Debug/netcoreapp3.1/Microsoft.Extensions.Configuration.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MelihVarilci/ReCapProject/2b638d40aadb091a59ff2b9fff5ba0ff1bffdd66/Console/bin/Debug/netcoreapp3.1/Microsoft.Extensions.Configuration.dll -------------------------------------------------------------------------------- /Console/bin/Debug/netcoreapp3.1/Microsoft.Extensions.DependencyInjection.Abstractions.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MelihVarilci/ReCapProject/2b638d40aadb091a59ff2b9fff5ba0ff1bffdd66/Console/bin/Debug/netcoreapp3.1/Microsoft.Extensions.DependencyInjection.Abstractions.dll -------------------------------------------------------------------------------- /Console/bin/Debug/netcoreapp3.1/Microsoft.Extensions.DependencyInjection.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MelihVarilci/ReCapProject/2b638d40aadb091a59ff2b9fff5ba0ff1bffdd66/Console/bin/Debug/netcoreapp3.1/Microsoft.Extensions.DependencyInjection.dll -------------------------------------------------------------------------------- /Console/bin/Debug/netcoreapp3.1/Microsoft.Extensions.Logging.Abstractions.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MelihVarilci/ReCapProject/2b638d40aadb091a59ff2b9fff5ba0ff1bffdd66/Console/bin/Debug/netcoreapp3.1/Microsoft.Extensions.Logging.Abstractions.dll -------------------------------------------------------------------------------- /Console/bin/Debug/netcoreapp3.1/Microsoft.Extensions.Logging.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MelihVarilci/ReCapProject/2b638d40aadb091a59ff2b9fff5ba0ff1bffdd66/Console/bin/Debug/netcoreapp3.1/Microsoft.Extensions.Logging.dll -------------------------------------------------------------------------------- /Console/bin/Debug/netcoreapp3.1/Microsoft.Extensions.ObjectPool.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MelihVarilci/ReCapProject/2b638d40aadb091a59ff2b9fff5ba0ff1bffdd66/Console/bin/Debug/netcoreapp3.1/Microsoft.Extensions.ObjectPool.dll -------------------------------------------------------------------------------- /Console/bin/Debug/netcoreapp3.1/Microsoft.Extensions.Options.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MelihVarilci/ReCapProject/2b638d40aadb091a59ff2b9fff5ba0ff1bffdd66/Console/bin/Debug/netcoreapp3.1/Microsoft.Extensions.Options.dll -------------------------------------------------------------------------------- /Console/bin/Debug/netcoreapp3.1/Microsoft.Extensions.Primitives.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MelihVarilci/ReCapProject/2b638d40aadb091a59ff2b9fff5ba0ff1bffdd66/Console/bin/Debug/netcoreapp3.1/Microsoft.Extensions.Primitives.dll -------------------------------------------------------------------------------- /Console/bin/Debug/netcoreapp3.1/Microsoft.Identity.Client.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MelihVarilci/ReCapProject/2b638d40aadb091a59ff2b9fff5ba0ff1bffdd66/Console/bin/Debug/netcoreapp3.1/Microsoft.Identity.Client.dll -------------------------------------------------------------------------------- /Console/bin/Debug/netcoreapp3.1/Microsoft.IdentityModel.JsonWebTokens.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MelihVarilci/ReCapProject/2b638d40aadb091a59ff2b9fff5ba0ff1bffdd66/Console/bin/Debug/netcoreapp3.1/Microsoft.IdentityModel.JsonWebTokens.dll -------------------------------------------------------------------------------- /Console/bin/Debug/netcoreapp3.1/Microsoft.IdentityModel.Logging.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MelihVarilci/ReCapProject/2b638d40aadb091a59ff2b9fff5ba0ff1bffdd66/Console/bin/Debug/netcoreapp3.1/Microsoft.IdentityModel.Logging.dll -------------------------------------------------------------------------------- /Console/bin/Debug/netcoreapp3.1/Microsoft.IdentityModel.Protocols.OpenIdConnect.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MelihVarilci/ReCapProject/2b638d40aadb091a59ff2b9fff5ba0ff1bffdd66/Console/bin/Debug/netcoreapp3.1/Microsoft.IdentityModel.Protocols.OpenIdConnect.dll -------------------------------------------------------------------------------- /Console/bin/Debug/netcoreapp3.1/Microsoft.IdentityModel.Protocols.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MelihVarilci/ReCapProject/2b638d40aadb091a59ff2b9fff5ba0ff1bffdd66/Console/bin/Debug/netcoreapp3.1/Microsoft.IdentityModel.Protocols.dll -------------------------------------------------------------------------------- /Console/bin/Debug/netcoreapp3.1/Microsoft.IdentityModel.Tokens.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MelihVarilci/ReCapProject/2b638d40aadb091a59ff2b9fff5ba0ff1bffdd66/Console/bin/Debug/netcoreapp3.1/Microsoft.IdentityModel.Tokens.dll -------------------------------------------------------------------------------- /Console/bin/Debug/netcoreapp3.1/Microsoft.Net.Http.Headers.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MelihVarilci/ReCapProject/2b638d40aadb091a59ff2b9fff5ba0ff1bffdd66/Console/bin/Debug/netcoreapp3.1/Microsoft.Net.Http.Headers.dll -------------------------------------------------------------------------------- /Console/bin/Debug/netcoreapp3.1/Newtonsoft.Json.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MelihVarilci/ReCapProject/2b638d40aadb091a59ff2b9fff5ba0ff1bffdd66/Console/bin/Debug/netcoreapp3.1/Newtonsoft.Json.dll -------------------------------------------------------------------------------- /Console/bin/Debug/netcoreapp3.1/System.Collections.Immutable.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MelihVarilci/ReCapProject/2b638d40aadb091a59ff2b9fff5ba0ff1bffdd66/Console/bin/Debug/netcoreapp3.1/System.Collections.Immutable.dll -------------------------------------------------------------------------------- /Console/bin/Debug/netcoreapp3.1/System.Configuration.ConfigurationManager.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MelihVarilci/ReCapProject/2b638d40aadb091a59ff2b9fff5ba0ff1bffdd66/Console/bin/Debug/netcoreapp3.1/System.Configuration.ConfigurationManager.dll -------------------------------------------------------------------------------- /Console/bin/Debug/netcoreapp3.1/System.Diagnostics.DiagnosticSource.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MelihVarilci/ReCapProject/2b638d40aadb091a59ff2b9fff5ba0ff1bffdd66/Console/bin/Debug/netcoreapp3.1/System.Diagnostics.DiagnosticSource.dll -------------------------------------------------------------------------------- /Console/bin/Debug/netcoreapp3.1/System.IO.Pipelines.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MelihVarilci/ReCapProject/2b638d40aadb091a59ff2b9fff5ba0ff1bffdd66/Console/bin/Debug/netcoreapp3.1/System.IO.Pipelines.dll -------------------------------------------------------------------------------- /Console/bin/Debug/netcoreapp3.1/System.IdentityModel.Tokens.Jwt.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MelihVarilci/ReCapProject/2b638d40aadb091a59ff2b9fff5ba0ff1bffdd66/Console/bin/Debug/netcoreapp3.1/System.IdentityModel.Tokens.Jwt.dll -------------------------------------------------------------------------------- /Console/bin/Debug/netcoreapp3.1/System.Runtime.Caching.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MelihVarilci/ReCapProject/2b638d40aadb091a59ff2b9fff5ba0ff1bffdd66/Console/bin/Debug/netcoreapp3.1/System.Runtime.Caching.dll -------------------------------------------------------------------------------- /Console/bin/Debug/netcoreapp3.1/System.Security.Cryptography.ProtectedData.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MelihVarilci/ReCapProject/2b638d40aadb091a59ff2b9fff5ba0ff1bffdd66/Console/bin/Debug/netcoreapp3.1/System.Security.Cryptography.ProtectedData.dll -------------------------------------------------------------------------------- /Console/bin/Debug/netcoreapp3.1/System.Security.Permissions.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MelihVarilci/ReCapProject/2b638d40aadb091a59ff2b9fff5ba0ff1bffdd66/Console/bin/Debug/netcoreapp3.1/System.Security.Permissions.dll -------------------------------------------------------------------------------- /Console/bin/Debug/netcoreapp3.1/log4net.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MelihVarilci/ReCapProject/2b638d40aadb091a59ff2b9fff5ba0ff1bffdd66/Console/bin/Debug/netcoreapp3.1/log4net.dll -------------------------------------------------------------------------------- /Console/bin/Debug/netcoreapp3.1/runtimes/unix/lib/netcoreapp2.0/System.Runtime.Caching.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MelihVarilci/ReCapProject/2b638d40aadb091a59ff2b9fff5ba0ff1bffdd66/Console/bin/Debug/netcoreapp3.1/runtimes/unix/lib/netcoreapp2.0/System.Runtime.Caching.dll -------------------------------------------------------------------------------- /Console/bin/Debug/netcoreapp3.1/runtimes/unix/lib/netcoreapp2.1/Microsoft.Data.SqlClient.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MelihVarilci/ReCapProject/2b638d40aadb091a59ff2b9fff5ba0ff1bffdd66/Console/bin/Debug/netcoreapp3.1/runtimes/unix/lib/netcoreapp2.1/Microsoft.Data.SqlClient.dll -------------------------------------------------------------------------------- /Console/bin/Debug/netcoreapp3.1/runtimes/win-arm64/native/sni.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MelihVarilci/ReCapProject/2b638d40aadb091a59ff2b9fff5ba0ff1bffdd66/Console/bin/Debug/netcoreapp3.1/runtimes/win-arm64/native/sni.dll -------------------------------------------------------------------------------- /Console/bin/Debug/netcoreapp3.1/runtimes/win-x64/native/sni.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MelihVarilci/ReCapProject/2b638d40aadb091a59ff2b9fff5ba0ff1bffdd66/Console/bin/Debug/netcoreapp3.1/runtimes/win-x64/native/sni.dll -------------------------------------------------------------------------------- /Console/bin/Debug/netcoreapp3.1/runtimes/win-x86/native/sni.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MelihVarilci/ReCapProject/2b638d40aadb091a59ff2b9fff5ba0ff1bffdd66/Console/bin/Debug/netcoreapp3.1/runtimes/win-x86/native/sni.dll -------------------------------------------------------------------------------- /Console/bin/Debug/netcoreapp3.1/runtimes/win/lib/netcoreapp2.0/System.Runtime.Caching.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MelihVarilci/ReCapProject/2b638d40aadb091a59ff2b9fff5ba0ff1bffdd66/Console/bin/Debug/netcoreapp3.1/runtimes/win/lib/netcoreapp2.0/System.Runtime.Caching.dll -------------------------------------------------------------------------------- /Console/bin/Debug/netcoreapp3.1/runtimes/win/lib/netcoreapp2.1/Microsoft.Data.SqlClient.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MelihVarilci/ReCapProject/2b638d40aadb091a59ff2b9fff5ba0ff1bffdd66/Console/bin/Debug/netcoreapp3.1/runtimes/win/lib/netcoreapp2.1/Microsoft.Data.SqlClient.dll -------------------------------------------------------------------------------- /Console/bin/Debug/netcoreapp3.1/runtimes/win/lib/netstandard2.0/System.Security.Cryptography.ProtectedData.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MelihVarilci/ReCapProject/2b638d40aadb091a59ff2b9fff5ba0ff1bffdd66/Console/bin/Debug/netcoreapp3.1/runtimes/win/lib/netstandard2.0/System.Security.Cryptography.ProtectedData.dll -------------------------------------------------------------------------------- /Console/obj/Console.csproj.nuget.g.props: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | True 5 | NuGet 6 | $(MSBuildThisFileDirectory)project.assets.json 7 | $(UserProfile)\.nuget\packages\ 8 | C:\Users\varil\.nuget\packages\ 9 | PackageReference 10 | 5.9.1 11 | 12 | 13 | 14 | 15 | 16 | $(MSBuildAllProjects);$(MSBuildThisFileFullPath) 17 | 18 | -------------------------------------------------------------------------------- /Console/obj/Console.csproj.nuget.g.targets: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | $(MSBuildAllProjects);$(MSBuildThisFileFullPath) 5 | 6 | -------------------------------------------------------------------------------- /Console/obj/Debug/netcoreapp3.1/.NETCoreApp,Version=v3.1.AssemblyAttributes.cs: -------------------------------------------------------------------------------- 1 | // 2 | using System; 3 | using System.Reflection; 4 | [assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETCoreApp,Version=v3.1", FrameworkDisplayName = "")] 5 | -------------------------------------------------------------------------------- /Console/obj/Debug/netcoreapp3.1/Console.AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | //------------------------------------------------------------------------------ 2 | // 3 | // This code was generated by a tool. 4 | // Runtime Version:4.0.30319.42000 5 | // 6 | // Changes to this file may cause incorrect behavior and will be lost if 7 | // the code is regenerated. 8 | // 9 | //------------------------------------------------------------------------------ 10 | 11 | using System; 12 | using System.Reflection; 13 | 14 | [assembly: System.Reflection.AssemblyCompanyAttribute("Console")] 15 | [assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")] 16 | [assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")] 17 | [assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0")] 18 | [assembly: System.Reflection.AssemblyProductAttribute("Console")] 19 | [assembly: System.Reflection.AssemblyTitleAttribute("Console")] 20 | [assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")] 21 | 22 | // Generated by the MSBuild WriteCodeFragment class. 23 | 24 | -------------------------------------------------------------------------------- /Console/obj/Debug/netcoreapp3.1/Console.AssemblyInfoInputs.cache: -------------------------------------------------------------------------------- 1 | 9d85a29fce2f1b99e20cc5526b57645381f8d5e2 2 | -------------------------------------------------------------------------------- /Console/obj/Debug/netcoreapp3.1/Console.assets.cache: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MelihVarilci/ReCapProject/2b638d40aadb091a59ff2b9fff5ba0ff1bffdd66/Console/obj/Debug/netcoreapp3.1/Console.assets.cache -------------------------------------------------------------------------------- /Console/obj/Debug/netcoreapp3.1/Console.csproj.CopyComplete: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MelihVarilci/ReCapProject/2b638d40aadb091a59ff2b9fff5ba0ff1bffdd66/Console/obj/Debug/netcoreapp3.1/Console.csproj.CopyComplete -------------------------------------------------------------------------------- /Console/obj/Debug/netcoreapp3.1/Console.csproj.CoreCompileInputs.cache: -------------------------------------------------------------------------------- 1 | d1d5aba6802db8457d27374a650d750fcbc0086c 2 | -------------------------------------------------------------------------------- /Console/obj/Debug/netcoreapp3.1/Console.csprojAssemblyReference.cache: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MelihVarilci/ReCapProject/2b638d40aadb091a59ff2b9fff5ba0ff1bffdd66/Console/obj/Debug/netcoreapp3.1/Console.csprojAssemblyReference.cache -------------------------------------------------------------------------------- /Console/obj/Debug/netcoreapp3.1/Console.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MelihVarilci/ReCapProject/2b638d40aadb091a59ff2b9fff5ba0ff1bffdd66/Console/obj/Debug/netcoreapp3.1/Console.dll -------------------------------------------------------------------------------- /Console/obj/Debug/netcoreapp3.1/Console.genruntimeconfig.cache: -------------------------------------------------------------------------------- 1 | 3f4e192cc41aa1fe1d658845ae15c440c9dd35c1 2 | -------------------------------------------------------------------------------- /Console/obj/Debug/netcoreapp3.1/Console.pdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MelihVarilci/ReCapProject/2b638d40aadb091a59ff2b9fff5ba0ff1bffdd66/Console/obj/Debug/netcoreapp3.1/Console.pdb -------------------------------------------------------------------------------- /Console/obj/Debug/netcoreapp3.1/apphost.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MelihVarilci/ReCapProject/2b638d40aadb091a59ff2b9fff5ba0ff1bffdd66/Console/obj/Debug/netcoreapp3.1/apphost.exe -------------------------------------------------------------------------------- /Core/Aspects/Autofac/Caching/CacheAspect.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | using Castle.DynamicProxy; 6 | using Core.CrossCuttingConcerns.Caching; 7 | using Core.Utilities.Interceptors; 8 | using Core.Utilities.IoC; 9 | using Microsoft.Extensions.DependencyInjection; 10 | 11 | namespace Core.Aspects.Autofac.Caching 12 | { 13 | public class CacheAspect : MethodInterception 14 | { 15 | private int _duration; 16 | private ICacheManager _cacheManager; 17 | 18 | public CacheAspect(int duration = 60) 19 | { 20 | _duration = duration; 21 | _cacheManager = ServiceTool.ServiceProvider.GetService(); 22 | } 23 | 24 | public override void Intercept(IInvocation invocation) 25 | { 26 | var methodName = string.Format($"{invocation.Method.ReflectedType.FullName}.{invocation.Method.Name}"); 27 | var arguments = invocation.Arguments.ToList(); 28 | var key = $"{methodName}({string.Join(",", arguments.Select(x => x?.ToString() ?? ""))})"; 29 | if (_cacheManager.IsAdd(key)) 30 | { 31 | invocation.ReturnValue = _cacheManager.Get(key); 32 | return; 33 | } 34 | invocation.Proceed(); 35 | _cacheManager.Add(key, invocation.ReturnValue, _duration); 36 | } 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /Core/Aspects/Autofac/Caching/CacheRemoveAspect.cs: -------------------------------------------------------------------------------- 1 | using Castle.DynamicProxy; 2 | using Core.CrossCuttingConcerns.Caching; 3 | using Core.Utilities.Interceptors; 4 | using Core.Utilities.IoC; 5 | using Microsoft.Extensions.DependencyInjection; 6 | 7 | namespace Core.Aspects.Autofac.Caching 8 | { 9 | public class CacheRemoveAspect : MethodInterception 10 | { 11 | private string _pattern; 12 | private ICacheManager _cacheManager; 13 | 14 | public CacheRemoveAspect(string pattern) 15 | { 16 | _pattern = pattern; 17 | _cacheManager = ServiceTool.ServiceProvider.GetService(); 18 | } 19 | 20 | protected override void OnSuccess(IInvocation invocation) 21 | { 22 | _cacheManager.RemoveByPattern(_pattern); 23 | } 24 | } 25 | } -------------------------------------------------------------------------------- /Core/Aspects/Autofac/Exception/ExceptionLogAspect.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Text; 4 | using Castle.DynamicProxy; 5 | using Core.CrossCuttingConcerns.Logging; 6 | using Core.CrossCuttingConcerns.Logging.Log4Net; 7 | using Core.Utilities.Interceptors; 8 | using Core.Utilities.Messages; 9 | 10 | namespace Core.Aspects.Autofac.Exception 11 | { 12 | public class ExceptionLogAspect : MethodInterception 13 | { 14 | private LoggerServiceBase _loggerServiceBase; 15 | 16 | public ExceptionLogAspect(Type loggerService) 17 | { 18 | if (loggerService.BaseType != typeof(LoggerServiceBase)) 19 | { 20 | throw new System.Exception(AspectMessages.WrongLoggerType); 21 | } 22 | 23 | _loggerServiceBase = (LoggerServiceBase)Activator.CreateInstance(loggerService); 24 | } 25 | protected override void OnException(IInvocation invocation, System.Exception e) 26 | { 27 | LogDetailWithException logDetailWithException = GetLogDetail(invocation); 28 | logDetailWithException.ExceptionMessage = e.Message; 29 | _loggerServiceBase.Error(logDetailWithException); 30 | } 31 | 32 | private LogDetailWithException GetLogDetail(IInvocation invocation) 33 | { 34 | var logParameters = new List(); 35 | 36 | for (int i = 0; i < invocation.Arguments.Length; i++) 37 | { 38 | logParameters.Add(new LogParameter 39 | { 40 | Name = invocation.GetConcreteMethod().GetParameters()[i].Name, 41 | Value = invocation.Arguments[i], 42 | Type = invocation.Arguments[i].GetType().Name 43 | }); 44 | } 45 | 46 | var logDetailWithException = new LogDetailWithException 47 | { 48 | MethodName = invocation.Method.Name, 49 | LogParameters = logParameters 50 | }; 51 | 52 | return logDetailWithException; 53 | } 54 | } 55 | } 56 | -------------------------------------------------------------------------------- /Core/Aspects/Autofac/Logging/LogAspect.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Text; 4 | using Castle.DynamicProxy; 5 | using Core.CrossCuttingConcerns.Logging; 6 | using Core.CrossCuttingConcerns.Logging.Log4Net; 7 | using Core.Utilities.Interceptors; 8 | using Core.Utilities.Messages; 9 | 10 | namespace Core.Aspects.Autofac.Logging 11 | { 12 | public class LogAspect : MethodInterception 13 | { 14 | private LoggerServiceBase _loggerServiceBase; 15 | 16 | public LogAspect(Type loggerService) 17 | { 18 | if (loggerService.BaseType != typeof(LoggerServiceBase)) 19 | { 20 | throw new System.Exception(AspectMessages.WrongLoggerType); 21 | } 22 | 23 | _loggerServiceBase = (LoggerServiceBase)Activator.CreateInstance(loggerService); 24 | } 25 | 26 | protected override void OnBefore(IInvocation invocation) 27 | { 28 | _loggerServiceBase.Info(GetLogDetail(invocation)); 29 | } 30 | 31 | private LogDetail GetLogDetail(IInvocation invocation) 32 | { 33 | var logParameters = new List(); 34 | for (int i = 0; i < invocation.Arguments.Length; i++) 35 | { 36 | logParameters.Add(new LogParameter 37 | { 38 | Name = invocation.GetConcreteMethod().GetParameters()[i].Name, 39 | Value = invocation.Arguments[i], 40 | Type = invocation.Arguments[i].GetType().Name 41 | }); 42 | } 43 | 44 | var logDetail = new LogDetail 45 | { 46 | MethodName = invocation.Method.Name, 47 | LogParameters = logParameters 48 | }; 49 | 50 | return logDetail; 51 | } 52 | } 53 | } 54 | -------------------------------------------------------------------------------- /Core/Aspects/Autofac/Performance/PerformanceAspect.cs: -------------------------------------------------------------------------------- 1 | using Castle.DynamicProxy; 2 | using Core.Utilities.Interceptors; 3 | using Core.Utilities.IoC; 4 | using Microsoft.Extensions.DependencyInjection; 5 | using System.Diagnostics; 6 | 7 | namespace Core.Aspects.Autofac.Performance 8 | { 9 | public class PerformanceAspect : MethodInterception 10 | { 11 | private int _interval; 12 | private Stopwatch _stopwatch; 13 | 14 | public PerformanceAspect(int interval) 15 | { 16 | _interval = interval; 17 | _stopwatch = ServiceTool.ServiceProvider.GetService(); 18 | } 19 | 20 | 21 | protected override void OnBefore(IInvocation invocation) 22 | { 23 | _stopwatch.Start(); 24 | } 25 | 26 | protected override void OnAfter(IInvocation invocation) 27 | { 28 | if (_stopwatch.Elapsed.TotalSeconds > _interval) 29 | { 30 | Debug.WriteLine($"Performance : {invocation.Method.DeclaringType.FullName}.{invocation.Method.Name}-->{_stopwatch.Elapsed.TotalSeconds}"); 31 | } 32 | _stopwatch.Reset(); 33 | } 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /Core/Aspects/Autofac/Transaction/TransactionScopeAspect.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Text; 4 | using Castle.DynamicProxy; 5 | using Core.Utilities.Interceptors; 6 | 7 | namespace Core.Aspects.Autofac.Transaction 8 | { 9 | public class TransactionScopeAspect :MethodInterceptionBaseAttribute 10 | { 11 | protected virtual void OnBefore(IInvocation invocation) { } 12 | protected virtual void OnAfter(IInvocation invocation) { } 13 | protected virtual void OnException(IInvocation invocation, System.Exception e) { } 14 | protected virtual void OnSuccess(IInvocation invocation) { } 15 | public override void Intercept(IInvocation invocation) 16 | { 17 | var isSuccess = true; 18 | OnBefore(invocation); 19 | try 20 | { 21 | invocation.Proceed(); 22 | } 23 | catch (System.Exception e) 24 | { 25 | isSuccess = false; 26 | OnException(invocation, e); 27 | throw; 28 | } 29 | finally 30 | { 31 | if (isSuccess) 32 | { 33 | OnSuccess(invocation); 34 | } 35 | } 36 | OnAfter(invocation); 37 | } 38 | } 39 | } 40 | -------------------------------------------------------------------------------- /Core/Aspects/Autofac/Validation/ValidationAspect.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | using Castle.DynamicProxy; 6 | using Core.CrossCuttingConcerns.Validation; 7 | using Core.Utilities.Interceptors; 8 | using FluentValidation; 9 | 10 | namespace Core.Aspects.Autofac.Validation 11 | { 12 | public class ValidationAspect : MethodInterception 13 | { 14 | private Type _validatorType; 15 | public ValidationAspect(Type validatorType) 16 | { 17 | if (!typeof(IValidator).IsAssignableFrom(validatorType)) 18 | { 19 | throw new System.Exception("Bu bir doğrulama sınıfı değil"); 20 | } 21 | 22 | _validatorType = validatorType; 23 | } 24 | protected override void OnBefore(IInvocation invocation) 25 | { 26 | var validator = (IValidator)Activator.CreateInstance(_validatorType); 27 | var entityType = _validatorType.BaseType.GetGenericArguments()[0]; 28 | var entities = invocation.Arguments.Where(t => t.GetType() == entityType); 29 | foreach (var entity in entities) 30 | { 31 | ValidationTool.Validate(validator, entity); 32 | } 33 | } 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /Core/Core.csproj: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | netstandard2.0 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /Core/Core.csproj.user: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | true 5 | 6 | -------------------------------------------------------------------------------- /Core/CrossCuttingConcerns/Caching/ICacheManager.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Text; 4 | 5 | namespace Core.CrossCuttingConcerns.Caching 6 | { 7 | public interface ICacheManager 8 | { 9 | T Get(string key); 10 | object Get(string key); 11 | void Add(string key, object value, int duration); 12 | bool IsAdd(string key); 13 | void Remove(string key); 14 | void RemoveByPattern(string pattern); 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /Core/CrossCuttingConcerns/Caching/Microsoft/MemoryCacheManager.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | using System.Text.RegularExpressions; 6 | using Core.Utilities.IoC; 7 | using Microsoft.Extensions.Caching.Memory; 8 | using Microsoft.Extensions.DependencyInjection; 9 | 10 | namespace Core.CrossCuttingConcerns.Caching.Microsoft 11 | { 12 | public class MemoryCacheManager : ICacheManager 13 | { 14 | //Adapter Pattern 15 | IMemoryCache _memoryCache; 16 | 17 | public MemoryCacheManager() 18 | { 19 | _memoryCache = ServiceTool.ServiceProvider.GetService(); 20 | } 21 | 22 | public T Get(string key) 23 | { 24 | return _memoryCache.Get(key); 25 | } 26 | 27 | public object Get(string key) 28 | { 29 | return _memoryCache.Get(key); 30 | } 31 | 32 | public void Add(string key, object value, int duration) 33 | { 34 | _memoryCache.Set(key, value, TimeSpan.FromMinutes(duration)); 35 | } 36 | 37 | public bool IsAdd(string key) 38 | { 39 | return _memoryCache.TryGetValue(key, out _); 40 | } 41 | 42 | public void Remove(string key) 43 | { 44 | _memoryCache.Remove(key); 45 | } 46 | 47 | public void RemoveByPattern(string pattern) 48 | { 49 | var cacheEntriesCollectionDefinition = typeof(MemoryCache).GetProperty("EntriesCollection", System.Reflection.BindingFlags.NonPublic | System.Reflection.BindingFlags.Instance); 50 | var cacheEntriesCollection = cacheEntriesCollectionDefinition.GetValue(_memoryCache) as dynamic; 51 | List cacheCollectionValues = new List(); 52 | 53 | foreach (var cacheItem in cacheEntriesCollection) 54 | { 55 | ICacheEntry cacheItemValue = cacheItem.GetType().GetProperty("Value").GetValue(cacheItem, null); 56 | cacheCollectionValues.Add(cacheItemValue); 57 | } 58 | 59 | var regex = new Regex(pattern, RegexOptions.Singleline | RegexOptions.Compiled | RegexOptions.IgnoreCase); 60 | var keysToRemove = cacheCollectionValues.Where(d => regex.IsMatch(d.Key.ToString())).Select(d => d.Key).ToList(); 61 | 62 | foreach (var key in keysToRemove) 63 | { 64 | _memoryCache.Remove(key); 65 | } 66 | } 67 | } 68 | } 69 | -------------------------------------------------------------------------------- /Core/CrossCuttingConcerns/Logging/Log4Net/Layouts/JsonLayout.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.IO; 4 | using System.Text; 5 | using log4net.Core; 6 | using log4net.Layout; 7 | using Newtonsoft.Json; 8 | 9 | namespace Core.CrossCuttingConcerns.Logging.Log4Net.Layouts 10 | { 11 | public class JsonLayout : LayoutSkeleton 12 | { 13 | public override void ActivateOptions() 14 | { 15 | 16 | } 17 | 18 | public override void Format(TextWriter writer, LoggingEvent loggingEvent) 19 | { 20 | var logEvent = new SerializableLogEvent(loggingEvent); 21 | var json = JsonConvert.SerializeObject(logEvent, Formatting.Indented); 22 | writer.WriteLine(json); 23 | } 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /Core/CrossCuttingConcerns/Logging/Log4Net/LoggerServiceBase.cs: -------------------------------------------------------------------------------- 1 | using log4net; 2 | using System; 3 | using System.Collections.Generic; 4 | using System.IO; 5 | using System.Reflection; 6 | using System.Text; 7 | using System.Xml; 8 | using log4net.Repository; 9 | 10 | namespace Core.CrossCuttingConcerns.Logging.Log4Net 11 | { 12 | public class LoggerServiceBase 13 | { 14 | private ILog _log; 15 | public LoggerServiceBase(string name) 16 | { 17 | XmlDocument xmlDocument = new XmlDocument(); 18 | xmlDocument.Load(File.OpenRead("log4net.config")); 19 | 20 | ILoggerRepository loggerRepository = LogManager.CreateRepository(Assembly.GetEntryAssembly(), 21 | typeof(log4net.Repository.Hierarchy.Hierarchy)); 22 | log4net.Config.XmlConfigurator.Configure(loggerRepository, xmlDocument["log4net"]); 23 | 24 | _log = LogManager.GetLogger(loggerRepository.Name, name); 25 | 26 | 27 | } 28 | 29 | public bool IsInfoEnabled => _log.IsInfoEnabled; 30 | public bool IsDebugEnabled => _log.IsDebugEnabled; 31 | public bool IsWarnEnabled => _log.IsWarnEnabled; 32 | public bool IsFatalEnabled => _log.IsFatalEnabled; 33 | public bool IsErrorEnabled => _log.IsErrorEnabled; 34 | 35 | public void Info(object logMessage) 36 | { 37 | if (IsInfoEnabled) 38 | _log.Info(logMessage); 39 | } 40 | 41 | public void Debug(object logMessage) 42 | { 43 | if (IsDebugEnabled) 44 | _log.Debug(logMessage); 45 | } 46 | 47 | public void Warn(object logMessage) 48 | { 49 | if (IsWarnEnabled) 50 | _log.Warn(logMessage); 51 | } 52 | 53 | public void Fatal(object logMessage) 54 | { 55 | if (IsFatalEnabled) 56 | _log.Fatal(logMessage); 57 | } 58 | 59 | public void Error(object logMessage) 60 | { 61 | if (IsErrorEnabled) 62 | _log.Error(logMessage); 63 | } 64 | 65 | } 66 | } 67 | -------------------------------------------------------------------------------- /Core/CrossCuttingConcerns/Logging/Log4Net/Loggers/DatabaseLogger.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Text; 4 | 5 | namespace Core.CrossCuttingConcerns.Logging.Log4Net.Loggers 6 | { 7 | public class DatabaseLogger : LoggerServiceBase 8 | { 9 | public DatabaseLogger() : base("DatabaseLogger") 10 | { 11 | } 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /Core/CrossCuttingConcerns/Logging/Log4Net/Loggers/FileLogger.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Text; 4 | 5 | namespace Core.CrossCuttingConcerns.Logging.Log4Net.Loggers 6 | { 7 | public class FileLogger : LoggerServiceBase 8 | { 9 | public FileLogger() : base("JsonFileLogger") 10 | { 11 | } 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /Core/CrossCuttingConcerns/Logging/Log4Net/SerializableLogEvent.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Text; 4 | using log4net.Core; 5 | 6 | namespace Core.CrossCuttingConcerns.Logging.Log4Net 7 | { 8 | [Serializable] 9 | public class SerializableLogEvent 10 | { 11 | private LoggingEvent _loggingEvent; 12 | 13 | public SerializableLogEvent(LoggingEvent loggingEvent) 14 | { 15 | _loggingEvent = loggingEvent; 16 | } 17 | 18 | public object Message => _loggingEvent.MessageObject; 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /Core/CrossCuttingConcerns/Logging/LogDetail.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Text; 4 | 5 | namespace Core.CrossCuttingConcerns.Logging 6 | { 7 | public class LogDetail 8 | { 9 | public string MethodName { get; set; } 10 | public List LogParameters { get; set; } 11 | 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /Core/CrossCuttingConcerns/Logging/LogDetailWithException.cs: -------------------------------------------------------------------------------- 1 | namespace Core.CrossCuttingConcerns.Logging 2 | { 3 | public class LogDetailWithException : LogDetail 4 | { 5 | public string ExceptionMessage { get; set; } 6 | } 7 | } -------------------------------------------------------------------------------- /Core/CrossCuttingConcerns/Logging/LogParameter.cs: -------------------------------------------------------------------------------- 1 | namespace Core.CrossCuttingConcerns.Logging 2 | { 3 | public class LogParameter 4 | { 5 | public string Name { get; set; } 6 | public object Value { get; set; } 7 | public string Type { get; set; } 8 | } 9 | } -------------------------------------------------------------------------------- /Core/CrossCuttingConcerns/Validation/ValidationTool.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Text; 4 | using FluentValidation; 5 | 6 | namespace Core.CrossCuttingConcerns.Validation 7 | { 8 | public class ValidationTool 9 | { 10 | public static void Validate(IValidator validator, object entity) 11 | { 12 | var context = new ValidationContext(entity); 13 | var result = validator.Validate(context); 14 | if (!result.IsValid) 15 | { 16 | throw new ValidationException(result.Errors); 17 | } 18 | } 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /Core/DataAccess/EntityFramework/EfEntityRepositoryBase.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Linq.Expressions; 5 | using System.Text; 6 | using Core.Entities; 7 | using Microsoft.EntityFrameworkCore; 8 | 9 | namespace Core.DataAccess.EntityFramework 10 | { 11 | public class EfEntityRepositoryBase : IEntityRepository 12 | where TEntity : class, IEntity, new() 13 | where TContext : DbContext, new() 14 | { 15 | public List GetAll(Expression> filter = null) 16 | { 17 | using (TContext context = new TContext()) 18 | { 19 | return filter == null 20 | ? context.Set().ToList() 21 | : context.Set().Where(filter).ToList(); 22 | } 23 | } 24 | 25 | public TEntity Get(Expression> filter) 26 | { 27 | using (TContext context = new TContext()) 28 | { 29 | return context.Set().SingleOrDefault(filter); 30 | } 31 | } 32 | 33 | public void Add(TEntity entity) 34 | { 35 | using (TContext context = new TContext()) 36 | { 37 | var addedEntity = context.Entry(entity); 38 | addedEntity.State = EntityState.Added; 39 | context.SaveChanges(); 40 | } 41 | } 42 | 43 | public void Update(TEntity entity) 44 | { 45 | using (TContext context = new TContext()) 46 | { 47 | var updatedEntity = context.Entry(entity); 48 | updatedEntity.State = EntityState.Modified; 49 | context.SaveChanges(); 50 | } 51 | } 52 | 53 | public void Delete(TEntity entity) 54 | { 55 | using (TContext context = new TContext()) 56 | { 57 | var deletedEntity = context.Entry(entity); 58 | deletedEntity.State = EntityState.Deleted; 59 | context.SaveChanges(); 60 | } 61 | } 62 | } 63 | } -------------------------------------------------------------------------------- /Core/DataAccess/IEntityRepository.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq.Expressions; 4 | using System.Text; 5 | using Core.Entities; 6 | 7 | namespace Core.DataAccess 8 | { 9 | public interface IEntityRepository 10 | where T : class, IEntity, new() 11 | { 12 | List GetAll(Expression> filter = null); 13 | T Get(Expression> filter); 14 | void Add(T entity); 15 | void Update(T entity); 16 | void Delete(T entity); 17 | } 18 | } -------------------------------------------------------------------------------- /Core/DependencyResolvers/CoreModule.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Diagnostics; 4 | using System.Text; 5 | using Core.CrossCuttingConcerns.Caching; 6 | using Core.CrossCuttingConcerns.Caching.Microsoft; 7 | using Core.Utilities.IoC; 8 | using Microsoft.AspNetCore.Http; 9 | using Microsoft.Extensions.DependencyInjection; 10 | 11 | namespace Core.DependencyResolvers 12 | { 13 | public class CoreModule : ICoreModule 14 | { 15 | public void Load(IServiceCollection serviceCollection) 16 | { 17 | serviceCollection.AddMemoryCache(); 18 | serviceCollection.AddSingleton(); 19 | serviceCollection.AddSingleton(); 20 | serviceCollection.AddSingleton(); 21 | } 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /Core/Entities/Concrete/OperationClaim.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Text; 4 | 5 | namespace Core.Entities.Concrete 6 | { 7 | public class OperationClaim : IEntity 8 | { 9 | public int Id { get; set; } 10 | public string Name { get; set; } 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /Core/Entities/Concrete/User.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Text; 4 | using Core.Entities; 5 | 6 | namespace Core.Entities.Concrete 7 | { 8 | public class User:IEntity 9 | { 10 | public int UserId { get; set; } 11 | public string FirstName { get; set; } 12 | public string LastName { get; set; } 13 | public string Email { get; set; } 14 | public byte[] PasswordSalt { get; set; } 15 | public byte[] PasswordHash { get; set; } 16 | public bool Status { get; set; } 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /Core/Entities/Concrete/UserOperationClaim.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Text; 4 | 5 | namespace Core.Entities.Concrete 6 | { 7 | public class UserOperationClaim : IEntity 8 | { 9 | public int Id { get; set; } 10 | public int UserId { get; set; } 11 | public int OperationClaimId { get; set; } 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /Core/Entities/IDto.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Text; 4 | 5 | namespace Core.Entities 6 | { 7 | public interface IDto 8 | { 9 | } 10 | } -------------------------------------------------------------------------------- /Core/Entities/IEntity.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Text; 4 | 5 | namespace Core.Entities 6 | { 7 | public interface IEntity 8 | { 9 | } 10 | } -------------------------------------------------------------------------------- /Core/Extensions/ClaimExtensions.cs: -------------------------------------------------------------------------------- 1 | using System.Collections.Generic; 2 | using System.IdentityModel.Tokens.Jwt; 3 | using System.Linq; 4 | using System.Security.Claims; 5 | 6 | namespace Core.Extensions 7 | { 8 | public static class ClaimExtensions 9 | { 10 | public static void AddEmail(this ICollection claims, string email) 11 | { 12 | claims.Add(new Claim(JwtRegisteredClaimNames.Email, email)); 13 | } 14 | 15 | public static void AddName(this ICollection claims, string name) 16 | { 17 | claims.Add(new Claim(ClaimTypes.Name, name)); 18 | } 19 | 20 | public static void AddNameIdentifier(this ICollection claims, string nameIdentifier) 21 | { 22 | claims.Add(new Claim(ClaimTypes.NameIdentifier, nameIdentifier)); 23 | } 24 | 25 | public static void AddRoles(this ICollection claims, string[] roles) 26 | { 27 | roles.ToList().ForEach(role => claims.Add(new Claim(ClaimTypes.Role, role))); 28 | } 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /Core/Extensions/ClaimsPrincipalExtensions.cs: -------------------------------------------------------------------------------- 1 | using System.Collections.Generic; 2 | using System.Linq; 3 | using System.Security.Claims; 4 | 5 | namespace Core.Extensions 6 | { 7 | public static class ClaimsPrincipalExtensions 8 | { 9 | public static List Claims(this ClaimsPrincipal claimsPrincipal, string claimType) 10 | { 11 | var result = claimsPrincipal?.FindAll(claimType)?.Select(x => x.Value).ToList(); 12 | return result; 13 | } 14 | 15 | public static List ClaimRoles(this ClaimsPrincipal claimsPrincipal) 16 | { 17 | return claimsPrincipal?.Claims(ClaimTypes.Role); 18 | } 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /Core/Extensions/ErrorDetails.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Text; 3 | using Newtonsoft.Json; 4 | 5 | namespace Core.Extensions 6 | { 7 | public class ErrorDetails 8 | { 9 | public string Message { get; set; } 10 | public int StatusCode { get; set; } 11 | 12 | public override string ToString() 13 | { 14 | return JsonConvert.SerializeObject(this); 15 | } 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /Core/Extensions/ExceptionMiddleware.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Net; 4 | using System.Text; 5 | using System.Threading.Tasks; 6 | using FluentValidation; 7 | using FluentValidation.Results; 8 | using Microsoft.AspNetCore.Http; 9 | 10 | namespace Core.Extensions 11 | { 12 | public class ExceptionMiddleware 13 | { 14 | private RequestDelegate _next; 15 | 16 | public ExceptionMiddleware(RequestDelegate next) 17 | { 18 | _next = next; 19 | } 20 | 21 | public async Task InvokeAsync(HttpContext httpContext) 22 | { 23 | try 24 | { 25 | await _next(httpContext); 26 | } 27 | catch (Exception e) 28 | { 29 | await HandleExceptionAsync(httpContext, e); 30 | } 31 | } 32 | 33 | private Task HandleExceptionAsync(HttpContext httpContext, Exception e) 34 | { 35 | httpContext.Response.ContentType = "application/json"; 36 | httpContext.Response.StatusCode = (int)HttpStatusCode.InternalServerError; 37 | 38 | string message = "Internal Server Error"; 39 | IEnumerable errors; 40 | if (e.GetType() == typeof(ValidationException)) 41 | { 42 | message = e.Message; 43 | errors = ((ValidationException)e).Errors; 44 | httpContext.Response.StatusCode = 400; 45 | 46 | return httpContext.Response.WriteAsync(new ValidationErrorDetails 47 | { 48 | StatusCode = 400, 49 | Message = message, 50 | ValidationErrors = errors 51 | }.ToString()); 52 | } 53 | 54 | return httpContext.Response.WriteAsync(new ErrorDetails 55 | { 56 | StatusCode = httpContext.Response.StatusCode, 57 | Message = message 58 | }.ToString()); 59 | } 60 | } 61 | } 62 | -------------------------------------------------------------------------------- /Core/Extensions/ExceptionMiddlewareExtensions.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Text; 4 | using Microsoft.AspNetCore.Builder; 5 | 6 | namespace Core.Extensions 7 | { 8 | public static class ExceptionMiddlewareExtensions 9 | { 10 | public static void ConfigureCustomExceptionMiddleware(this IApplicationBuilder app) 11 | { 12 | app.UseMiddleware(); 13 | } 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /Core/Extensions/ServiceCollectionExtensions.cs: -------------------------------------------------------------------------------- 1 | using Core.Utilities.IoC; 2 | using Microsoft.Extensions.DependencyInjection; 3 | 4 | namespace Core.Extensions 5 | { 6 | public static class ServiceCollectionExtensions 7 | { 8 | public static IServiceCollection AddDependencyResolvers 9 | (this IServiceCollection serviceCollection, ICoreModule[] modules) 10 | { 11 | foreach (var module in modules) 12 | { 13 | module.Load(serviceCollection); 14 | } 15 | 16 | return ServiceTool.Create(serviceCollection); 17 | } 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /Core/Extensions/ValidationErrorDetails.cs: -------------------------------------------------------------------------------- 1 | using System.Collections.Generic; 2 | using FluentValidation.Results; 3 | 4 | namespace Core.Extensions 5 | { 6 | public class ValidationErrorDetails : ErrorDetails 7 | { 8 | public IEnumerable ValidationErrors { get; set; } 9 | 10 | } 11 | } -------------------------------------------------------------------------------- /Core/Utilities/Business/BusinessRules.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Text; 4 | using Core.Utilities.Result; 5 | 6 | namespace Core.Utilities.Business 7 | { 8 | public class BusinessRules 9 | { 10 | public static IResult Run(params IResult[] logics) 11 | { 12 | foreach (var logic in logics) 13 | { 14 | if (!logic.Success) 15 | { 16 | return logic; 17 | } 18 | } 19 | 20 | return null; 21 | } 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /Core/Utilities/FileHelper/FileHelper.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.IO; 3 | using Core.Utilities.Result; 4 | using Microsoft.AspNetCore.Http; 5 | 6 | namespace Core.Utilities.FileHelper 7 | { 8 | public class FileHelper 9 | { 10 | public static string AddAsync(IFormFile file) 11 | { 12 | var result = newPath(file); 13 | 14 | try 15 | { 16 | var sourcePath = Path.GetTempFileName(); 17 | 18 | if (file.Length > 0) 19 | { 20 | using (var stream = new FileStream(sourcePath, FileMode.Create)) 21 | { 22 | file.CopyTo(stream); 23 | } 24 | } 25 | 26 | File.Move(sourcePath, result.newPath); 27 | } 28 | catch (Exception exception) 29 | { 30 | return exception.Message; 31 | } 32 | 33 | return result.Path2; 34 | } 35 | 36 | public static string UpdateAsync(string sourcePath, IFormFile file) 37 | { 38 | var result = newPath(file); 39 | 40 | try 41 | { 42 | using (var stream = new FileStream(result.newPath, FileMode.Create)) 43 | { 44 | file.CopyTo(stream); 45 | } 46 | 47 | File.Delete(sourcePath); 48 | } 49 | catch (Exception excepiton) 50 | { 51 | return excepiton.Message; 52 | } 53 | 54 | return result.Path2; 55 | } 56 | 57 | public static IResult DeleteAsync(string path) 58 | { 59 | try 60 | { 61 | File.Delete(path); 62 | } 63 | catch (Exception exception) 64 | { 65 | return new ErrorResult(exception.Message); 66 | } 67 | 68 | return new SuccessResult(); 69 | } 70 | 71 | public static (string newPath, string Path2) newPath(IFormFile file) 72 | { 73 | FileInfo ff = new FileInfo(file.FileName); 74 | 75 | string fileExtension = ff.Extension; 76 | 77 | var creatingUniqueFilename = Guid.NewGuid().ToString("N") + fileExtension; 78 | 79 | string result = $@"{Environment.CurrentDirectory + @"\wwwroot\Images"}\{creatingUniqueFilename}"; 80 | 81 | return (result, $"\\Images\\{creatingUniqueFilename}"); 82 | } 83 | } 84 | } 85 | -------------------------------------------------------------------------------- /Core/Utilities/Interceptors/AspectInterceptorSelector.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Linq; 3 | using System.Reflection; 4 | using Castle.DynamicProxy; 5 | using Core.Aspects.Autofac.Exception; 6 | using Core.CrossCuttingConcerns.Logging.Log4Net.Loggers; 7 | 8 | namespace Core.Utilities.Interceptors 9 | { 10 | public class AspectInterceptorSelector : IInterceptorSelector 11 | { 12 | public IInterceptor[] SelectInterceptors(Type type, MethodInfo method, IInterceptor[] interceptors) 13 | { 14 | var classAttributes = type.GetCustomAttributes 15 | (true).ToList(); 16 | var methodAttributes = type.GetMethod(method.Name) 17 | .GetCustomAttributes(true); 18 | classAttributes.AddRange(methodAttributes); 19 | classAttributes.Add(new ExceptionLogAspect(typeof(FileLogger))); 20 | 21 | return classAttributes.OrderBy(x => x.Priority).ToArray(); 22 | } 23 | } 24 | } -------------------------------------------------------------------------------- /Core/Utilities/Interceptors/MethodInterception.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using Castle.DynamicProxy; 3 | 4 | namespace Core.Utilities.Interceptors 5 | { 6 | public abstract class MethodInterception : MethodInterceptionBaseAttribute 7 | { 8 | protected virtual void OnBefore(IInvocation invocation) { } 9 | protected virtual void OnAfter(IInvocation invocation) { } 10 | protected virtual void OnException(IInvocation invocation, System.Exception e) { } 11 | protected virtual void OnSuccess(IInvocation invocation) { } 12 | public override void Intercept(IInvocation invocation) 13 | { 14 | var isSuccess = true; 15 | OnBefore(invocation); 16 | try 17 | { 18 | invocation.Proceed(); 19 | } 20 | catch (Exception e) 21 | { 22 | isSuccess = false; 23 | OnException(invocation, e); 24 | throw; 25 | } 26 | finally 27 | { 28 | if (isSuccess) 29 | { 30 | OnSuccess(invocation); 31 | } 32 | } 33 | OnAfter(invocation); 34 | } 35 | } 36 | } -------------------------------------------------------------------------------- /Core/Utilities/Interceptors/MethodInterceptionBaseAttribute.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Text; 4 | using Castle.DynamicProxy; 5 | 6 | namespace Core.Utilities.Interceptors 7 | { 8 | [AttributeUsage(AttributeTargets.Class | AttributeTargets.Method, AllowMultiple = true, Inherited = true)] 9 | public abstract class MethodInterceptionBaseAttribute : Attribute, IInterceptor 10 | { 11 | public int Priority { get; set; } 12 | 13 | public virtual void Intercept(IInvocation invocation) 14 | { 15 | 16 | } 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /Core/Utilities/IoC/ICoreModule.cs: -------------------------------------------------------------------------------- 1 | using Microsoft.Extensions.DependencyInjection; 2 | 3 | namespace Core.Utilities.IoC 4 | { 5 | public interface ICoreModule 6 | { 7 | void Load(IServiceCollection serviceCollection); 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /Core/Utilities/IoC/ServiceTool.cs: -------------------------------------------------------------------------------- 1 | using Microsoft.Extensions.DependencyInjection; 2 | using System; 3 | 4 | namespace Core.Utilities.IoC 5 | { 6 | public static class ServiceTool 7 | { 8 | public static IServiceProvider ServiceProvider { get; private set; } 9 | 10 | public static IServiceCollection Create(IServiceCollection services) 11 | { 12 | ServiceProvider = services.BuildServiceProvider(); 13 | return services; 14 | } 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /Core/Utilities/Messages/AspectMessages.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Text; 4 | 5 | namespace Core.Utilities.Messages 6 | { 7 | public static class AspectMessages 8 | { 9 | public static string WrongValidationType = "Yanlış doğrulama türü"; 10 | public static string WrongLoggerType = "Yanlış kaydedici türü"; 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /Core/Utilities/Result/DataResult.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Text; 4 | 5 | namespace Core.Utilities.Result 6 | { 7 | public class DataResult: Result, IDataResult 8 | { 9 | public DataResult(T data, bool success, string message) : base(success, message) 10 | { 11 | Data = data; 12 | } 13 | 14 | public DataResult(T data, bool success) : base(success) 15 | { 16 | Data = data; 17 | } 18 | 19 | public T Data { get; } 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /Core/Utilities/Result/ErrorDataResult.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Text; 4 | 5 | namespace Core.Utilities.Result 6 | { 7 | public class ErrorDataResult:DataResult 8 | { 9 | public ErrorDataResult(T data, string message) : base(data, false, message) 10 | { 11 | } 12 | 13 | public ErrorDataResult(T data) : base(data, false) 14 | { 15 | } 16 | 17 | public ErrorDataResult(string message):base(default,false,message) 18 | { 19 | 20 | } 21 | public ErrorDataResult():base(default,false) 22 | { 23 | 24 | } 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /Core/Utilities/Result/ErrorResult.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Text; 4 | 5 | namespace Core.Utilities.Result 6 | { 7 | public class ErrorResult:Result 8 | { 9 | public ErrorResult(string message) : base(false, message) 10 | { 11 | } 12 | 13 | public ErrorResult() : base(false) 14 | { 15 | } 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /Core/Utilities/Result/IDataResult.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Text; 4 | 5 | namespace Core.Utilities.Result 6 | { 7 | public interface IDataResult:IResult 8 | { 9 | T Data { get; } 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /Core/Utilities/Result/IResult.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Text; 4 | 5 | namespace Core.Utilities.Result 6 | { 7 | public interface IResult 8 | { 9 | bool Success { get; } 10 | string Message { get; } 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /Core/Utilities/Result/Result.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Text; 4 | 5 | namespace Core.Utilities.Result 6 | { 7 | public class Result:IResult 8 | { 9 | public Result(bool success,string message):this(success) 10 | { 11 | Message = message; 12 | } 13 | 14 | public Result(bool success) 15 | { 16 | Success = success; 17 | } 18 | public bool Success { get; } 19 | public string Message { get; } 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /Core/Utilities/Result/SuccessDataResult.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Text; 4 | 5 | namespace Core.Utilities.Result 6 | { 7 | public class SuccessDataResult:DataResult 8 | { 9 | public SuccessDataResult(T data, string message) : base(data, true, message) 10 | { 11 | } 12 | 13 | public SuccessDataResult(T data) : base(data, true) 14 | { 15 | } 16 | 17 | public SuccessDataResult(string message):base(default,true,message) 18 | { 19 | 20 | } 21 | 22 | public SuccessDataResult():base(default,true) 23 | { 24 | 25 | } 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /Core/Utilities/Result/SuccessResult.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Text; 4 | 5 | namespace Core.Utilities.Result 6 | { 7 | public class SuccessResult:Result 8 | { 9 | public SuccessResult(string message) : base(true, message) 10 | { 11 | } 12 | 13 | public SuccessResult() : base(true) 14 | { 15 | } 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /Core/Utilities/Security/Encryption/SecurityKeyHelper.cs: -------------------------------------------------------------------------------- 1 | using Microsoft.IdentityModel.Tokens; 2 | using System.Text; 3 | 4 | namespace Core.Utilities.Security.Encryption 5 | { 6 | public class SecurityKeyHelper 7 | { 8 | public static SecurityKey CreateSecurityKey(string securityKey) 9 | { 10 | return new SymmetricSecurityKey(Encoding.UTF8.GetBytes(securityKey)); 11 | } 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /Core/Utilities/Security/Encryption/SigningCredentialsHelper.cs: -------------------------------------------------------------------------------- 1 | using Microsoft.IdentityModel.Tokens; 2 | 3 | namespace Core.Utilities.Security.Encryption 4 | { 5 | public class SigningCredentialsHelper 6 | { 7 | public static SigningCredentials CreateSigningCredentials(SecurityKey securityKey) 8 | { 9 | return new SigningCredentials(securityKey, SecurityAlgorithms.HmacSha512Signature); 10 | } 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /Core/Utilities/Security/Hashing/HashingHelper.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Text; 4 | 5 | namespace Core.Utilities.Security.Hashing 6 | { 7 | public class HashingHelper 8 | { 9 | public static void CreatePasswordHash 10 | (string password, out byte[] passwordHash, out byte[] passwordSalt) 11 | { 12 | using (var hmac = new System.Security.Cryptography.HMACSHA512()) 13 | { 14 | passwordSalt = hmac.Key; 15 | passwordHash = hmac.ComputeHash(Encoding.UTF8.GetBytes(password)); 16 | } 17 | } 18 | public static bool VerifyPasswordHash 19 | (string password, byte[] passwordHash, byte[] passwordSalt) 20 | { 21 | using (var hmac = new System.Security.Cryptography.HMACSHA512(passwordSalt)) 22 | { 23 | var computedHash = hmac.ComputeHash(Encoding.UTF8.GetBytes(password)); 24 | for (int i = 0; i < computedHash.Length; i++) 25 | { 26 | if (computedHash[i] != passwordHash[i]) 27 | { 28 | return false; 29 | } 30 | } 31 | return true; 32 | } 33 | } 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /Core/Utilities/Security/JWT/AccessToken.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Text; 4 | 5 | namespace Core.Utilities.Security.JWT 6 | { 7 | public class AccessToken 8 | { 9 | public string Token { get; set; } 10 | public DateTime Expiration { get; set; } 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /Core/Utilities/Security/JWT/ITokenHelper.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Text; 4 | using Core.Entities.Concrete; 5 | using Core.Utilities.Result; 6 | 7 | namespace Core.Utilities.Security.JWT 8 | { 9 | public interface ITokenHelper 10 | { 11 | AccessToken CreateToken(User user, List operationClaims); 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /Core/Utilities/Security/JWT/TokenOptions.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Text; 4 | 5 | namespace Core.Utilities.Security.JWT 6 | { 7 | public class TokenOptions 8 | { 9 | public string Audience { get; set; } 10 | public string Issuer { get; set; } 11 | public int AccessTokenExpiration { get; set; } 12 | public string SecurityKey { get; set; } 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /Core/Utilities/Uploaders/PathNames.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Text; 4 | 5 | namespace Core.Utilities.Uploaders 6 | { 7 | public class PathNames 8 | { 9 | public static string BaseName = @"\WebAPI\wwwroot\"; 10 | public static string CarImages = @"Uploads\Images\CarImages"; 11 | public static string AddCarImage = BaseName + CarImages; 12 | public static string CarDefaultImages = @"\Images\default.jpg"; 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /Core/bin/Debug/netstandard2.0/Core.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MelihVarilci/ReCapProject/2b638d40aadb091a59ff2b9fff5ba0ff1bffdd66/Core/bin/Debug/netstandard2.0/Core.dll -------------------------------------------------------------------------------- /Core/bin/Debug/netstandard2.0/Core.pdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MelihVarilci/ReCapProject/2b638d40aadb091a59ff2b9fff5ba0ff1bffdd66/Core/bin/Debug/netstandard2.0/Core.pdb -------------------------------------------------------------------------------- /Core/obj/Core.csproj.nuget.g.props: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | True 5 | NuGet 6 | $(MSBuildThisFileDirectory)project.assets.json 7 | $(UserProfile)\.nuget\packages\ 8 | C:\Users\varil\.nuget\packages\ 9 | PackageReference 10 | 5.9.1 11 | 12 | 13 | 14 | 15 | 16 | $(MSBuildAllProjects);$(MSBuildThisFileFullPath) 17 | 18 | -------------------------------------------------------------------------------- /Core/obj/Core.csproj.nuget.g.targets: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | $(MSBuildAllProjects);$(MSBuildThisFileFullPath) 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /Core/obj/Debug/netstandard2.0/.NETStandard,Version=v2.0.AssemblyAttributes.cs: -------------------------------------------------------------------------------- 1 | // 2 | using System; 3 | using System.Reflection; 4 | [assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETStandard,Version=v2.0", FrameworkDisplayName = "")] 5 | -------------------------------------------------------------------------------- /Core/obj/Debug/netstandard2.0/Core.AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | //------------------------------------------------------------------------------ 2 | // 3 | // This code was generated by a tool. 4 | // Runtime Version:4.0.30319.42000 5 | // 6 | // Changes to this file may cause incorrect behavior and will be lost if 7 | // the code is regenerated. 8 | // 9 | //------------------------------------------------------------------------------ 10 | 11 | using System; 12 | using System.Reflection; 13 | 14 | [assembly: System.Reflection.AssemblyCompanyAttribute("Core")] 15 | [assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")] 16 | [assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")] 17 | [assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0")] 18 | [assembly: System.Reflection.AssemblyProductAttribute("Core")] 19 | [assembly: System.Reflection.AssemblyTitleAttribute("Core")] 20 | [assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")] 21 | 22 | // Generated by the MSBuild WriteCodeFragment class. 23 | 24 | -------------------------------------------------------------------------------- /Core/obj/Debug/netstandard2.0/Core.AssemblyInfoInputs.cache: -------------------------------------------------------------------------------- 1 | bb70b8d99ff9108d5c8f3ce9e50331d5e1228212 2 | -------------------------------------------------------------------------------- /Core/obj/Debug/netstandard2.0/Core.assets.cache: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MelihVarilci/ReCapProject/2b638d40aadb091a59ff2b9fff5ba0ff1bffdd66/Core/obj/Debug/netstandard2.0/Core.assets.cache -------------------------------------------------------------------------------- /Core/obj/Debug/netstandard2.0/Core.csproj.CoreCompileInputs.cache: -------------------------------------------------------------------------------- 1 | df8325f6f037c3e996235848d9ff41ea6c7ca641 2 | -------------------------------------------------------------------------------- /Core/obj/Debug/netstandard2.0/Core.csproj.FileListAbsolute.txt: -------------------------------------------------------------------------------- 1 | C:\Users\varil\source\repos\ReCapProject\Core\obj\Debug\netstandard2.0\Core.AssemblyInfoInputs.cache 2 | C:\Users\varil\source\repos\ReCapProject\Core\obj\Debug\netstandard2.0\Core.AssemblyInfo.cs 3 | C:\Users\varil\source\repos\ReCapProject\Core\obj\Debug\netstandard2.0\Core.csproj.CoreCompileInputs.cache 4 | C:\Users\varil\source\repos\ReCapProject\Core\bin\Debug\netstandard2.0\Core.deps.json 5 | C:\Users\varil\source\repos\ReCapProject\Core\bin\Debug\netstandard2.0\Core.dll 6 | C:\Users\varil\source\repos\ReCapProject\Core\bin\Debug\netstandard2.0\Core.pdb 7 | C:\Users\varil\source\repos\ReCapProject\Core\obj\Debug\netstandard2.0\Core.dll 8 | C:\Users\varil\source\repos\ReCapProject\Core\obj\Debug\netstandard2.0\Core.pdb 9 | C:\Users\varil\source\repos\ReCapProject\Core\obj\Debug\netstandard2.0\Core.csprojAssemblyReference.cache 10 | -------------------------------------------------------------------------------- /Core/obj/Debug/netstandard2.0/Core.csprojAssemblyReference.cache: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MelihVarilci/ReCapProject/2b638d40aadb091a59ff2b9fff5ba0ff1bffdd66/Core/obj/Debug/netstandard2.0/Core.csprojAssemblyReference.cache -------------------------------------------------------------------------------- /Core/obj/Debug/netstandard2.0/Core.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MelihVarilci/ReCapProject/2b638d40aadb091a59ff2b9fff5ba0ff1bffdd66/Core/obj/Debug/netstandard2.0/Core.dll -------------------------------------------------------------------------------- /Core/obj/Debug/netstandard2.0/Core.pdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MelihVarilci/ReCapProject/2b638d40aadb091a59ff2b9fff5ba0ff1bffdd66/Core/obj/Debug/netstandard2.0/Core.pdb -------------------------------------------------------------------------------- /DataAccess/Abstract/IBrandDal.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Text; 4 | using Core.DataAccess; 5 | using Entities.Concrete; 6 | 7 | namespace DataAccess.Concrete.EntityFramework 8 | { 9 | public interface IBrandDal : IEntityRepository 10 | { 11 | } 12 | } -------------------------------------------------------------------------------- /DataAccess/Abstract/ICarDal.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq.Expressions; 4 | using System.Text; 5 | using Core.DataAccess; 6 | using DataAccess.Concrete.EntityFramework; 7 | using Entities.Concrete; 8 | using Entities.DTOs; 9 | 10 | namespace DataAccess.Abstract 11 | { 12 | public interface ICarDal : IEntityRepository 13 | { 14 | List GetCarDetails(Expression> filter = null); 15 | } 16 | } -------------------------------------------------------------------------------- /DataAccess/Abstract/ICarImageDal.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Text; 4 | using Core.DataAccess; 5 | using Entities.Concrete; 6 | 7 | namespace DataAccess.Abstract 8 | { 9 | public interface ICarImageDal:IEntityRepository 10 | { 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /DataAccess/Abstract/IColorDal.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Text; 4 | using Core.DataAccess; 5 | using DataAccess.Concrete.EntityFramework; 6 | using Entities.Concrete; 7 | using Entities.DTOs; 8 | 9 | namespace DataAccess.Abstract 10 | { 11 | public interface IColorDal : IEntityRepository 12 | { 13 | } 14 | } -------------------------------------------------------------------------------- /DataAccess/Abstract/ICustomerDal.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq.Expressions; 4 | using System.Text; 5 | using Core.DataAccess; 6 | using Entities.Concrete; 7 | using Entities.DTOs; 8 | 9 | namespace DataAccess.Abstract 10 | { 11 | public interface ICustomerDal : IEntityRepository 12 | { 13 | List GetCustomerDetails(Expression> filter = null); 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /DataAccess/Abstract/IFakeCardDal.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Text; 4 | using Core.DataAccess; 5 | using Entities.Concrete; 6 | 7 | namespace DataAccess.Abstract 8 | { 9 | public interface IFakeCardDal : IEntityRepository 10 | { 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /DataAccess/Abstract/IRentalDal.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq.Expressions; 4 | using System.Text; 5 | using Core.DataAccess; 6 | using Entities.Concrete; 7 | using Entities.DTOs; 8 | 9 | namespace DataAccess.Abstract 10 | { 11 | public interface IRentalDal:IEntityRepository 12 | { 13 | List GetRentalDetails(Expression> filter = null); 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /DataAccess/Abstract/IUserDal.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Text; 4 | using Core.DataAccess; 5 | using Core.Entities.Concrete; 6 | using Entities.Concrete; 7 | 8 | namespace DataAccess.Abstract 9 | { 10 | public interface IUserDal:IEntityRepository 11 | { 12 | List GetClaims(User user); 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /DataAccess/Concrete/EntityFramework/EfBrandDal.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Linq.Expressions; 5 | using System.Text; 6 | using Core.DataAccess.EntityFramework; 7 | using Entities.Concrete; 8 | using Microsoft.EntityFrameworkCore; 9 | 10 | namespace DataAccess.Concrete.EntityFramework 11 | { 12 | public class EfBrandDal : EfEntityRepositoryBase, IBrandDal 13 | { 14 | } 15 | } -------------------------------------------------------------------------------- /DataAccess/Concrete/EntityFramework/EfCarDal.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Linq.Expressions; 5 | using System.Text; 6 | using Core.DataAccess.EntityFramework; 7 | using Core.Utilities.Uploaders; 8 | using DataAccess.Abstract; 9 | using Entities.Concrete; 10 | using Entities.DTOs; 11 | using Microsoft.EntityFrameworkCore; 12 | 13 | namespace DataAccess.Concrete.EntityFramework 14 | { 15 | public class EfCarDal : EfEntityRepositoryBase, ICarDal 16 | { 17 | public List GetCarDetails(Expression> filter = null) 18 | { 19 | using (ReCapContext context = new ReCapContext()) 20 | { 21 | var result = from cr in filter == null ? context.Cars : context.Cars.Where(filter) 22 | join b in context.Brands 23 | on cr.BrandId equals b.BrandId 24 | join cl in context.Colors 25 | on cr.ColorId equals cl.ColorId 26 | let images = (from carImage in context.CarImages where cr.CarId == carImage.CarId select carImage).ToList() 27 | select new CarDetailDto 28 | { 29 | CarId = cr.CarId, 30 | BrandId = b.BrandId, 31 | ColorId = cl.ColorId, 32 | CarModelYear = cr.CarModelYear, 33 | CarDescription = cr.CarDescription, 34 | BrandName = b.BrandName, 35 | ColorName = cl.ColorName, 36 | CarDailyPrice = cr.CarDailyPrice, 37 | Status = !context.Rentals.Any(r => r.CarId == cr.CarId && (r.ReturnDate == null || r.ReturnDate > DateTime.Now)), 38 | FindexPoint = cr.FindexPoint, 39 | CarImages = images.Count > 0 ? images : new List { new CarImage { ImagePath = PathNames.CarDefaultImages} } 40 | 41 | }; 42 | //return filter == null 43 | // ? result.ToList() 44 | // : result.Where(filter).ToList(); 45 | return result.ToList(); 46 | } 47 | } 48 | } 49 | } -------------------------------------------------------------------------------- /DataAccess/Concrete/EntityFramework/EfCarImageDal.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Text; 4 | using Core.DataAccess.EntityFramework; 5 | using DataAccess.Abstract; 6 | using Entities.Concrete; 7 | 8 | namespace DataAccess.Concrete.EntityFramework 9 | { 10 | public class EfCarImageDal:EfEntityRepositoryBase,ICarImageDal 11 | { 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /DataAccess/Concrete/EntityFramework/EfColorDal.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Linq.Expressions; 5 | using System.Text; 6 | using Core.DataAccess.EntityFramework; 7 | using DataAccess.Abstract; 8 | using Entities.Concrete; 9 | using Entities.DTOs; 10 | using Microsoft.EntityFrameworkCore; 11 | 12 | namespace DataAccess.Concrete.EntityFramework 13 | { 14 | public class EfColorDal : EfEntityRepositoryBase, IColorDal 15 | { 16 | } 17 | } -------------------------------------------------------------------------------- /DataAccess/Concrete/EntityFramework/EfCustomerDal.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Linq.Expressions; 5 | using System.Text; 6 | using Core.DataAccess.EntityFramework; 7 | using DataAccess.Abstract; 8 | using Entities.Concrete; 9 | using Entities.DTOs; 10 | 11 | namespace DataAccess.Concrete.EntityFramework 12 | { 13 | public class EfCustomerDal : EfEntityRepositoryBase, ICustomerDal 14 | { 15 | public List GetCustomerDetails(Expression> filter = null) 16 | { 17 | using (ReCapContext context = new ReCapContext()) 18 | { 19 | var result = from ct in context.Customers 20 | join us in context.Users 21 | on ct.UserId equals us.UserId 22 | select new CustomerDetailDto 23 | { 24 | CustomerId = ct.CustomerId, 25 | UserId = us.UserId, 26 | CompanyName = ct.CompanyName, 27 | Email = us.Email, 28 | FirstName = us.FirstName, 29 | LastName = us.LastName, 30 | Status = us.Status, 31 | FindexPoint = (int)ct.FindexPoint, 32 | Claims = (from uoc in context.UserOperationClaims.Where(c => c.UserId == us.UserId) 33 | join claim in context.OperationClaims on uoc.OperationClaimId equals claim.Id 34 | select claim.Name).ToList() 35 | }; 36 | return filter == null 37 | ? result.ToList() 38 | : result.Where(filter).ToList(); 39 | //: result.SingleOrDefault(filter); 40 | } 41 | } 42 | } 43 | } 44 | -------------------------------------------------------------------------------- /DataAccess/Concrete/EntityFramework/EfFakeCardDal.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Text; 4 | using Core.DataAccess.EntityFramework; 5 | using DataAccess.Abstract; 6 | using Entities.Concrete; 7 | 8 | namespace DataAccess.Concrete.EntityFramework 9 | { 10 | public class EfFakeCardDal:EfEntityRepositoryBase,IFakeCardDal 11 | { 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /DataAccess/Concrete/EntityFramework/EfRentalDal.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Linq.Expressions; 5 | using System.Text; 6 | using Core.DataAccess.EntityFramework; 7 | using DataAccess.Abstract; 8 | using Entities.Concrete; 9 | using Entities.DTOs; 10 | 11 | namespace DataAccess.Concrete.EntityFramework 12 | { 13 | public class EfRentalDal:EfEntityRepositoryBase,IRentalDal 14 | { 15 | 16 | public List GetRentalDetails(Expression> filter = null) 17 | { 18 | using (ReCapContext context = new ReCapContext()) 19 | { 20 | var result = from rt in filter == null ? context.Rentals : context.Rentals.Where(filter) 21 | join cr in context.Cars on rt.CarId equals cr.CarId 22 | join cst in context.Customers on rt.CustomerId equals cst.CustomerId 23 | join usr in context.Users on cst.UserId equals usr.UserId 24 | join brd in context.Brands on cr.BrandId equals brd.BrandId 25 | join clr in context.Colors on cr.ColorId equals clr.ColorId 26 | select new RentalDetailDto 27 | { 28 | RentalId = rt.RentalId, 29 | CompanyName = cst.CompanyName, 30 | CarModelYear = cr.CarModelYear, 31 | CarDailyPrice = cr.CarDailyPrice, 32 | CarDescription = cr.CarDescription, 33 | CarId = rt.CarId, 34 | FirstName = usr.FirstName, 35 | LastName = usr.LastName, 36 | BrandName = brd.BrandName, 37 | ColorName = clr.ColorName, 38 | RentDate = rt.RentDate, 39 | ReturnDate = rt.ReturnDate 40 | }; 41 | return result.ToList(); 42 | } 43 | } 44 | 45 | } 46 | } 47 | -------------------------------------------------------------------------------- /DataAccess/Concrete/EntityFramework/EfUserDal.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | using Core.DataAccess.EntityFramework; 6 | using Core.Entities.Concrete; 7 | using DataAccess.Abstract; 8 | using Entities.Concrete; 9 | 10 | namespace DataAccess.Concrete.EntityFramework 11 | { 12 | public class EfUserDal : EfEntityRepositoryBase, IUserDal 13 | { 14 | public List GetClaims(User user) 15 | { 16 | using (var context = new ReCapContext()) 17 | { 18 | var result = from operationClaim in context.OperationClaims 19 | join UserOperationClaim in context.UserOperationClaims 20 | on operationClaim.Id equals UserOperationClaim.OperationClaimId 21 | where UserOperationClaim.UserId == user.UserId 22 | select new OperationClaim { Id = operationClaim.Id, Name = operationClaim.Name }; 23 | return result.ToList(); 24 | } 25 | } 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /DataAccess/Concrete/EntityFramework/ReCapContext.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Text; 4 | using Core.Entities.Concrete; 5 | using Entities.Concrete; 6 | using Microsoft.EntityFrameworkCore; 7 | 8 | namespace DataAccess.Concrete.EntityFramework 9 | { 10 | public class ReCapContext : DbContext 11 | { 12 | protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder) 13 | { 14 | optionsBuilder.UseSqlServer(@"Server=(localdb)\mssqllocaldb;Database=ReCap;Trusted_Connection=true"); 15 | } 16 | 17 | public DbSet Cars { get; set; } 18 | public DbSet Brands { get; set; } 19 | public DbSet Colors { get; set; } 20 | public DbSet Customers { get; set; } 21 | public DbSet Users { get; set; } 22 | public DbSet Rentals { get; set; } 23 | public DbSet CarImages { get; set; } 24 | public DbSet OperationClaims { get; set; } 25 | public DbSet UserOperationClaims { get; set; } 26 | public DbSet FakeCards { get; set; } 27 | } 28 | 29 | } -------------------------------------------------------------------------------- /DataAccess/DataAccess.csproj: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | netstandard2.0 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | -------------------------------------------------------------------------------- /DataAccess/bin/Debug/netstandard2.0/Core.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MelihVarilci/ReCapProject/2b638d40aadb091a59ff2b9fff5ba0ff1bffdd66/DataAccess/bin/Debug/netstandard2.0/Core.dll -------------------------------------------------------------------------------- /DataAccess/bin/Debug/netstandard2.0/Core.pdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MelihVarilci/ReCapProject/2b638d40aadb091a59ff2b9fff5ba0ff1bffdd66/DataAccess/bin/Debug/netstandard2.0/Core.pdb -------------------------------------------------------------------------------- /DataAccess/bin/Debug/netstandard2.0/DataAccess.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MelihVarilci/ReCapProject/2b638d40aadb091a59ff2b9fff5ba0ff1bffdd66/DataAccess/bin/Debug/netstandard2.0/DataAccess.dll -------------------------------------------------------------------------------- /DataAccess/bin/Debug/netstandard2.0/DataAccess.pdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MelihVarilci/ReCapProject/2b638d40aadb091a59ff2b9fff5ba0ff1bffdd66/DataAccess/bin/Debug/netstandard2.0/DataAccess.pdb -------------------------------------------------------------------------------- /DataAccess/bin/Debug/netstandard2.0/Entities.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MelihVarilci/ReCapProject/2b638d40aadb091a59ff2b9fff5ba0ff1bffdd66/DataAccess/bin/Debug/netstandard2.0/Entities.dll -------------------------------------------------------------------------------- /DataAccess/bin/Debug/netstandard2.0/Entities.pdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MelihVarilci/ReCapProject/2b638d40aadb091a59ff2b9fff5ba0ff1bffdd66/DataAccess/bin/Debug/netstandard2.0/Entities.pdb -------------------------------------------------------------------------------- /DataAccess/obj/DataAccess.csproj.nuget.g.props: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | True 5 | NuGet 6 | $(MSBuildThisFileDirectory)project.assets.json 7 | $(UserProfile)\.nuget\packages\ 8 | C:\Users\varil\.nuget\packages\ 9 | PackageReference 10 | 5.9.1 11 | 12 | 13 | 14 | 15 | 16 | $(MSBuildAllProjects);$(MSBuildThisFileFullPath) 17 | 18 | -------------------------------------------------------------------------------- /DataAccess/obj/DataAccess.csproj.nuget.g.targets: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | $(MSBuildAllProjects);$(MSBuildThisFileFullPath) 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /DataAccess/obj/Debug/netstandard2.0/.NETStandard,Version=v2.0.AssemblyAttributes.cs: -------------------------------------------------------------------------------- 1 | // 2 | using System; 3 | using System.Reflection; 4 | [assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETStandard,Version=v2.0", FrameworkDisplayName = "")] 5 | -------------------------------------------------------------------------------- /DataAccess/obj/Debug/netstandard2.0/DataAccess.AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | //------------------------------------------------------------------------------ 2 | // 3 | // This code was generated by a tool. 4 | // Runtime Version:4.0.30319.42000 5 | // 6 | // Changes to this file may cause incorrect behavior and will be lost if 7 | // the code is regenerated. 8 | // 9 | //------------------------------------------------------------------------------ 10 | 11 | using System; 12 | using System.Reflection; 13 | 14 | [assembly: System.Reflection.AssemblyCompanyAttribute("DataAccess")] 15 | [assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")] 16 | [assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")] 17 | [assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0")] 18 | [assembly: System.Reflection.AssemblyProductAttribute("DataAccess")] 19 | [assembly: System.Reflection.AssemblyTitleAttribute("DataAccess")] 20 | [assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")] 21 | 22 | // Generated by the MSBuild WriteCodeFragment class. 23 | 24 | -------------------------------------------------------------------------------- /DataAccess/obj/Debug/netstandard2.0/DataAccess.AssemblyInfoInputs.cache: -------------------------------------------------------------------------------- 1 | 6d4e2c1d9f6ac45f776d2f2ae5ef73593c1376b9 2 | -------------------------------------------------------------------------------- /DataAccess/obj/Debug/netstandard2.0/DataAccess.assets.cache: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MelihVarilci/ReCapProject/2b638d40aadb091a59ff2b9fff5ba0ff1bffdd66/DataAccess/obj/Debug/netstandard2.0/DataAccess.assets.cache -------------------------------------------------------------------------------- /DataAccess/obj/Debug/netstandard2.0/DataAccess.csproj.CopyComplete: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MelihVarilci/ReCapProject/2b638d40aadb091a59ff2b9fff5ba0ff1bffdd66/DataAccess/obj/Debug/netstandard2.0/DataAccess.csproj.CopyComplete -------------------------------------------------------------------------------- /DataAccess/obj/Debug/netstandard2.0/DataAccess.csproj.CoreCompileInputs.cache: -------------------------------------------------------------------------------- 1 | bbaf39998e3a31f5ea28a17637d1ce37f61f21c9 2 | -------------------------------------------------------------------------------- /DataAccess/obj/Debug/netstandard2.0/DataAccess.csproj.FileListAbsolute.txt: -------------------------------------------------------------------------------- 1 | C:\Users\varil\source\repos\ReCapProject\DataAccess\obj\Debug\netstandard2.0\DataAccess.csprojAssemblyReference.cache 2 | C:\Users\varil\source\repos\ReCapProject\DataAccess\obj\Debug\netstandard2.0\DataAccess.AssemblyInfoInputs.cache 3 | C:\Users\varil\source\repos\ReCapProject\DataAccess\obj\Debug\netstandard2.0\DataAccess.AssemblyInfo.cs 4 | C:\Users\varil\source\repos\ReCapProject\DataAccess\obj\Debug\netstandard2.0\DataAccess.csproj.CoreCompileInputs.cache 5 | C:\Users\varil\source\repos\ReCapProject\DataAccess\bin\Debug\netstandard2.0\Core.dll 6 | C:\Users\varil\source\repos\ReCapProject\DataAccess\bin\Debug\netstandard2.0\Entities.dll 7 | C:\Users\varil\source\repos\ReCapProject\DataAccess\bin\Debug\netstandard2.0\DataAccess.deps.json 8 | C:\Users\varil\source\repos\ReCapProject\DataAccess\bin\Debug\netstandard2.0\DataAccess.dll 9 | C:\Users\varil\source\repos\ReCapProject\DataAccess\bin\Debug\netstandard2.0\DataAccess.pdb 10 | C:\Users\varil\source\repos\ReCapProject\DataAccess\bin\Debug\netstandard2.0\Entities.pdb 11 | C:\Users\varil\source\repos\ReCapProject\DataAccess\bin\Debug\netstandard2.0\Core.pdb 12 | C:\Users\varil\source\repos\ReCapProject\DataAccess\obj\Debug\netstandard2.0\DataAccess.csproj.CopyComplete 13 | C:\Users\varil\source\repos\ReCapProject\DataAccess\obj\Debug\netstandard2.0\DataAccess.dll 14 | C:\Users\varil\source\repos\ReCapProject\DataAccess\obj\Debug\netstandard2.0\DataAccess.pdb 15 | -------------------------------------------------------------------------------- /DataAccess/obj/Debug/netstandard2.0/DataAccess.csprojAssemblyReference.cache: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MelihVarilci/ReCapProject/2b638d40aadb091a59ff2b9fff5ba0ff1bffdd66/DataAccess/obj/Debug/netstandard2.0/DataAccess.csprojAssemblyReference.cache -------------------------------------------------------------------------------- /DataAccess/obj/Debug/netstandard2.0/DataAccess.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MelihVarilci/ReCapProject/2b638d40aadb091a59ff2b9fff5ba0ff1bffdd66/DataAccess/obj/Debug/netstandard2.0/DataAccess.dll -------------------------------------------------------------------------------- /DataAccess/obj/Debug/netstandard2.0/DataAccess.pdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MelihVarilci/ReCapProject/2b638d40aadb091a59ff2b9fff5ba0ff1bffdd66/DataAccess/obj/Debug/netstandard2.0/DataAccess.pdb -------------------------------------------------------------------------------- /Entities/Concrete/Brand.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Text; 4 | using Core.Entities; 5 | 6 | namespace Entities.Concrete 7 | { 8 | public class Brand : IEntity 9 | { 10 | public int BrandId { get; set; } 11 | public string BrandName { get; set; } 12 | 13 | } 14 | } -------------------------------------------------------------------------------- /Entities/Concrete/Car.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Text; 4 | using Core.Entities; 5 | 6 | namespace Entities.Concrete 7 | { 8 | public class Car : IEntity 9 | { 10 | public int CarId { get; set; } 11 | public int BrandId { get; set; } 12 | public int ColorId { get; set; } 13 | public int CarModelYear { get; set; } 14 | public decimal CarDailyPrice { get; set; } 15 | public string CarDescription { get; set; } 16 | public int FindexPoint { get; set; } 17 | } 18 | } -------------------------------------------------------------------------------- /Entities/Concrete/CarImage.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Text; 4 | using Core.Entities; 5 | 6 | namespace Entities.Concrete 7 | { 8 | public class CarImage:IEntity 9 | { 10 | public int Id { get; set; } 11 | public int CarId { get; set; } 12 | public string ImagePath { get; set; } 13 | public DateTime? ImageDate { get; set; } 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /Entities/Concrete/Color.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Text; 4 | using Core.Entities; 5 | 6 | namespace Entities.Concrete 7 | { 8 | public class Color : IEntity 9 | { 10 | public int ColorId { get; set; } 11 | public string ColorName { get; set; } 12 | } 13 | } -------------------------------------------------------------------------------- /Entities/Concrete/Customer.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Text; 4 | using Core.Entities; 5 | 6 | namespace Entities.Concrete 7 | { 8 | public class Customer:IEntity 9 | { 10 | public int CustomerId { get; set; } 11 | public int UserId { get; set; } 12 | public string CompanyName { get; set; } 13 | public int? FindexPoint { get; set; } 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /Entities/Concrete/FakeCard.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Text; 4 | using Core.Entities; 5 | 6 | namespace Entities.Concrete 7 | { 8 | public class FakeCard : IEntity 9 | { 10 | public int Id { get; set; } 11 | public int CustomerId { get; set; } 12 | public string NameOnTheCard { get; set; } 13 | public string CardNumber { get; set; } 14 | public string CardCvv { get; set; } 15 | public string ExpirationDate { get; set; } 16 | public decimal MoneyInTheCard { get; set; } 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /Entities/Concrete/Rental.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Text; 4 | using Core.Entities; 5 | 6 | namespace Entities.Concrete 7 | { 8 | public class Rental:IEntity 9 | { 10 | public int RentalId { get; set; } 11 | public int CarId { get; set; } 12 | public int CustomerId { get; set; } 13 | public DateTime RentDate { get; set; } 14 | public DateTime? ReturnDate { get; set; } 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /Entities/DTOs/CarDetailDto.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Text; 4 | using Core.Entities; 5 | using Entities.Concrete; 6 | 7 | namespace Entities.DTOs 8 | { 9 | public class CarDetailDto : IDto 10 | { 11 | public int CarId { get; set; } 12 | public int BrandId { get; set; } 13 | public int ColorId { get; set; } 14 | public string BrandName { get; set; } 15 | public string ColorName { get; set; } 16 | public int CarModelYear { get; set; } 17 | public decimal CarDailyPrice { get; set; } 18 | public string CarDescription { get; set; } 19 | public List CarImages { get; set; } 20 | public bool Status { get; set; } 21 | public int FindexPoint { get; set; } 22 | } 23 | } -------------------------------------------------------------------------------- /Entities/DTOs/CustomerDetailDto.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Text; 4 | using Core.Entities; 5 | 6 | namespace Entities.DTOs 7 | { 8 | public class CustomerDetailDto:IDto 9 | { 10 | public int CustomerId { get; set; } 11 | public int UserId { get; set; } 12 | public string CompanyName { get; set; } 13 | public string FirstName { get; set; } 14 | public string LastName { get; set; } 15 | public string Email { get; set; } 16 | public bool Status { get; set; } 17 | public int FindexPoint { get; set; } 18 | public List Claims { get; set; } 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /Entities/DTOs/RentalDetailDto.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Text; 4 | using Core.Entities; 5 | 6 | namespace Entities.DTOs 7 | { 8 | public class RentalDetailDto:IDto 9 | { 10 | public int RentalId { get; set; } 11 | public int CarId { get; set; } 12 | public string BrandName { get; set; } 13 | public string ColorName { get; set; } 14 | public string FirstName { get; set; } 15 | public string LastName { get; set; } 16 | public string CompanyName { get; set; } 17 | public int CarModelYear { get; set; } 18 | public decimal CarDailyPrice { get; set; } 19 | public string CarDescription { get; set; } 20 | public DateTime RentDate { get; set; } 21 | public DateTime? ReturnDate { get; set; } 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /Entities/DTOs/UserForLoginDto.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Text; 4 | using Core.Entities; 5 | 6 | namespace Entities.DTOs 7 | { 8 | public class UserForLoginDto : IDto 9 | { 10 | public string Email { get; set; } 11 | public string Password { get; set; } 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /Entities/DTOs/UserForRegisterDto.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Text; 4 | using Core.Entities; 5 | 6 | namespace Entities.DTOs 7 | { 8 | public class UserForRegisterDto : IDto 9 | { 10 | public string Email { get; set; } 11 | public string Password { get; set; } 12 | public string FirstName { get; set; } 13 | public string LastName { get; set; } 14 | public string CompanyName { get; set; } 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /Entities/DTOs/UserForUpdateDto.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Text; 4 | using Core.Entities; 5 | 6 | namespace Entities.DTOs 7 | { 8 | public class UserForUpdateDto : UserForRegisterDto, IDto 9 | { 10 | public int CustomerId { get; set; } 11 | public int UserId { get; set; } 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /Entities/Entities.csproj: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | netstandard2.0 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /Entities/bin/Debug/netstandard2.0/Core.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MelihVarilci/ReCapProject/2b638d40aadb091a59ff2b9fff5ba0ff1bffdd66/Entities/bin/Debug/netstandard2.0/Core.dll -------------------------------------------------------------------------------- /Entities/bin/Debug/netstandard2.0/Core.pdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MelihVarilci/ReCapProject/2b638d40aadb091a59ff2b9fff5ba0ff1bffdd66/Entities/bin/Debug/netstandard2.0/Core.pdb -------------------------------------------------------------------------------- /Entities/bin/Debug/netstandard2.0/Entities.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MelihVarilci/ReCapProject/2b638d40aadb091a59ff2b9fff5ba0ff1bffdd66/Entities/bin/Debug/netstandard2.0/Entities.dll -------------------------------------------------------------------------------- /Entities/bin/Debug/netstandard2.0/Entities.pdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MelihVarilci/ReCapProject/2b638d40aadb091a59ff2b9fff5ba0ff1bffdd66/Entities/bin/Debug/netstandard2.0/Entities.pdb -------------------------------------------------------------------------------- /Entities/obj/Debug/netstandard2.0/.NETStandard,Version=v2.0.AssemblyAttributes.cs: -------------------------------------------------------------------------------- 1 | // 2 | using System; 3 | using System.Reflection; 4 | [assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETStandard,Version=v2.0", FrameworkDisplayName = "")] 5 | -------------------------------------------------------------------------------- /Entities/obj/Debug/netstandard2.0/Entities.AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | //------------------------------------------------------------------------------ 2 | // 3 | // This code was generated by a tool. 4 | // Runtime Version:4.0.30319.42000 5 | // 6 | // Changes to this file may cause incorrect behavior and will be lost if 7 | // the code is regenerated. 8 | // 9 | //------------------------------------------------------------------------------ 10 | 11 | using System; 12 | using System.Reflection; 13 | 14 | [assembly: System.Reflection.AssemblyCompanyAttribute("Entities")] 15 | [assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")] 16 | [assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")] 17 | [assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0")] 18 | [assembly: System.Reflection.AssemblyProductAttribute("Entities")] 19 | [assembly: System.Reflection.AssemblyTitleAttribute("Entities")] 20 | [assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")] 21 | 22 | // Generated by the MSBuild WriteCodeFragment class. 23 | 24 | -------------------------------------------------------------------------------- /Entities/obj/Debug/netstandard2.0/Entities.AssemblyInfoInputs.cache: -------------------------------------------------------------------------------- 1 | 6efefbace1bafaab5616b3f0e8985359045640cb 2 | -------------------------------------------------------------------------------- /Entities/obj/Debug/netstandard2.0/Entities.assets.cache: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MelihVarilci/ReCapProject/2b638d40aadb091a59ff2b9fff5ba0ff1bffdd66/Entities/obj/Debug/netstandard2.0/Entities.assets.cache -------------------------------------------------------------------------------- /Entities/obj/Debug/netstandard2.0/Entities.csproj.CopyComplete: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MelihVarilci/ReCapProject/2b638d40aadb091a59ff2b9fff5ba0ff1bffdd66/Entities/obj/Debug/netstandard2.0/Entities.csproj.CopyComplete -------------------------------------------------------------------------------- /Entities/obj/Debug/netstandard2.0/Entities.csproj.CoreCompileInputs.cache: -------------------------------------------------------------------------------- 1 | 8cd8c8ffcbaf6d9fc92c225038ee27999b8b91ac 2 | -------------------------------------------------------------------------------- /Entities/obj/Debug/netstandard2.0/Entities.csproj.FileListAbsolute.txt: -------------------------------------------------------------------------------- 1 | C:\Users\varil\source\repos\ReCapProject\Entities\obj\Debug\netstandard2.0\Entities.csprojAssemblyReference.cache 2 | C:\Users\varil\source\repos\ReCapProject\Entities\obj\Debug\netstandard2.0\Entities.AssemblyInfoInputs.cache 3 | C:\Users\varil\source\repos\ReCapProject\Entities\obj\Debug\netstandard2.0\Entities.AssemblyInfo.cs 4 | C:\Users\varil\source\repos\ReCapProject\Entities\obj\Debug\netstandard2.0\Entities.csproj.CoreCompileInputs.cache 5 | C:\Users\varil\source\repos\ReCapProject\Entities\bin\Debug\netstandard2.0\Entities.deps.json 6 | C:\Users\varil\source\repos\ReCapProject\Entities\bin\Debug\netstandard2.0\Entities.dll 7 | C:\Users\varil\source\repos\ReCapProject\Entities\bin\Debug\netstandard2.0\Entities.pdb 8 | C:\Users\varil\source\repos\ReCapProject\Entities\bin\Debug\netstandard2.0\Core.dll 9 | C:\Users\varil\source\repos\ReCapProject\Entities\bin\Debug\netstandard2.0\Core.pdb 10 | C:\Users\varil\source\repos\ReCapProject\Entities\obj\Debug\netstandard2.0\Entities.csproj.CopyComplete 11 | C:\Users\varil\source\repos\ReCapProject\Entities\obj\Debug\netstandard2.0\Entities.dll 12 | C:\Users\varil\source\repos\ReCapProject\Entities\obj\Debug\netstandard2.0\Entities.pdb 13 | -------------------------------------------------------------------------------- /Entities/obj/Debug/netstandard2.0/Entities.csprojAssemblyReference.cache: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MelihVarilci/ReCapProject/2b638d40aadb091a59ff2b9fff5ba0ff1bffdd66/Entities/obj/Debug/netstandard2.0/Entities.csprojAssemblyReference.cache -------------------------------------------------------------------------------- /Entities/obj/Debug/netstandard2.0/Entities.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MelihVarilci/ReCapProject/2b638d40aadb091a59ff2b9fff5ba0ff1bffdd66/Entities/obj/Debug/netstandard2.0/Entities.dll -------------------------------------------------------------------------------- /Entities/obj/Debug/netstandard2.0/Entities.pdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MelihVarilci/ReCapProject/2b638d40aadb091a59ff2b9fff5ba0ff1bffdd66/Entities/obj/Debug/netstandard2.0/Entities.pdb -------------------------------------------------------------------------------- /Entities/obj/Entities.csproj.nuget.g.props: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | True 5 | NuGet 6 | $(MSBuildThisFileDirectory)project.assets.json 7 | $(UserProfile)\.nuget\packages\ 8 | C:\Users\varil\.nuget\packages\ 9 | PackageReference 10 | 5.9.1 11 | 12 | 13 | 14 | 15 | 16 | $(MSBuildAllProjects);$(MSBuildThisFileFullPath) 17 | 18 | -------------------------------------------------------------------------------- /Entities/obj/Entities.csproj.nuget.g.targets: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | $(MSBuildAllProjects);$(MSBuildThisFileFullPath) 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /ReadMe.md: -------------------------------------------------------------------------------- 1 | # ReCapProject 2 | In this project, we are coding in accordance with SOLID principles. The aim of the project is to realize a small application by understanding the logic of design patterns. 3 | -------------------------------------------------------------------------------- /WebAPI/Controllers/AuthController.cs: -------------------------------------------------------------------------------- 1 | using Business.Abstract; 2 | using Entities.DTOs; 3 | using Microsoft.AspNetCore.Mvc; 4 | 5 | namespace WebAPI.Controllers 6 | { 7 | [Route("api/[controller]")] 8 | [ApiController] 9 | public class AuthController : Controller 10 | { 11 | IAuthService _authService; 12 | IUserService _userService; 13 | 14 | public AuthController(IAuthService authService, IUserService userService) 15 | { 16 | _authService = authService; 17 | _userService = userService; 18 | } 19 | 20 | [HttpPost("login")] 21 | public ActionResult Login(UserForLoginDto userForLoginDto) 22 | { 23 | var userToLogin = _authService.Login(userForLoginDto); 24 | if (!userToLogin.Success) 25 | { 26 | return BadRequest(userToLogin.Message); 27 | } 28 | 29 | var result = _authService.CreateAccessToken(userToLogin.Data); 30 | if (result.Success) 31 | { 32 | return Ok(result); 33 | } 34 | 35 | return BadRequest(result); 36 | } 37 | 38 | [HttpPost("register")] 39 | public ActionResult Register(UserForRegisterDto userForRegisterDto) 40 | { 41 | var userExists = _authService.UserExists(userForRegisterDto.Email); 42 | if (!userExists.Success) 43 | { 44 | return BadRequest(userExists.Message); 45 | } 46 | 47 | var registerResult = _authService.Register(userForRegisterDto, userForRegisterDto.Password); 48 | var result = _authService.CreateAccessToken(registerResult.Data); 49 | if (result.Success) 50 | { 51 | return Ok(result.Data); 52 | } 53 | 54 | return BadRequest(result.Message); 55 | } 56 | 57 | [HttpPost("update")] 58 | public ActionResult Update(UserForUpdateDto userForUpdate) 59 | { 60 | _authService.Update(userForUpdate); 61 | 62 | var user = _userService.GetByCustomerId(userForUpdate.UserId); 63 | var result = _authService.CreateAccessToken(user.Data[0]); 64 | 65 | if (result.Success) 66 | return Ok(result); 67 | 68 | return BadRequest(result.Message); 69 | } 70 | } 71 | } 72 | -------------------------------------------------------------------------------- /WebAPI/Controllers/BrandsController.cs: -------------------------------------------------------------------------------- 1 | using Microsoft.AspNetCore.Http; 2 | using Microsoft.AspNetCore.Mvc; 3 | using System; 4 | using System.Collections.Generic; 5 | using System.Linq; 6 | using System.Threading.Tasks; 7 | using Business.Abstract; 8 | using Business.Concrete; 9 | using DataAccess.Concrete.EntityFramework; 10 | using Entities.Concrete; 11 | 12 | namespace WebAPI.Controllers 13 | { 14 | [Route("api/[controller]")] 15 | [ApiController] 16 | public class BrandsController : ControllerBase 17 | { 18 | IBrandService _brandService; 19 | 20 | public BrandsController(IBrandService brandService) 21 | { 22 | _brandService = brandService; 23 | } 24 | [HttpGet("getall")] 25 | public IActionResult GetAll() 26 | { 27 | var result = _brandService.GetAll(); 28 | if (result.Success) 29 | { 30 | return Ok(result); 31 | } 32 | 33 | return BadRequest(result); 34 | } 35 | [HttpGet("getbyid")] 36 | public IActionResult GetById(int id) 37 | { 38 | var result = _brandService.GetByBrandId(id); 39 | if (result.Success) 40 | { 41 | return Ok(result); 42 | } 43 | 44 | return BadRequest(result); 45 | } 46 | [HttpPost("add")] 47 | public IActionResult Add(Brand brand) 48 | { 49 | var result = _brandService.Add(brand); 50 | if (result.Success) 51 | { 52 | return Ok(result); 53 | } 54 | 55 | return BadRequest(result); 56 | } 57 | 58 | [HttpPost("update")] 59 | public IActionResult Update(Brand brand) 60 | { 61 | var result = _brandService.Update(brand); 62 | if (result.Success) 63 | { 64 | return Ok(result); 65 | } 66 | 67 | return BadRequest(result); 68 | } 69 | 70 | [HttpPost("delete")] 71 | public IActionResult Delete(Brand brand) 72 | { 73 | var result = _brandService.Delete(brand); 74 | if (result.Success) 75 | { 76 | return Ok(result); 77 | } 78 | 79 | return BadRequest(result); 80 | } 81 | } 82 | } 83 | -------------------------------------------------------------------------------- /WebAPI/Controllers/UsersController.cs: -------------------------------------------------------------------------------- 1 | using Microsoft.AspNetCore.Http; 2 | using Microsoft.AspNetCore.Mvc; 3 | using System; 4 | using System.Collections.Generic; 5 | using System.Linq; 6 | using System.Threading.Tasks; 7 | using Business.Abstract; 8 | using Core.Entities.Concrete; 9 | using Entities.Concrete; 10 | using Entities.DTOs; 11 | 12 | namespace WebAPI.Controllers 13 | { 14 | [Route("api/[controller]")] 15 | [ApiController] 16 | public class UsersController : ControllerBase 17 | { 18 | IUserService _userService; 19 | 20 | public UsersController(IUserService userService) 21 | { 22 | _userService = userService; 23 | } 24 | 25 | [HttpGet("getall")] 26 | public IActionResult GetAll() 27 | { 28 | var result = _userService.GetAll(); 29 | if (result.Success) 30 | { 31 | return Ok(result); 32 | } 33 | 34 | return BadRequest(result); 35 | } 36 | 37 | [HttpGet("getbyid")] 38 | public IActionResult GetById(int id) 39 | { 40 | var result = _userService.GetByCustomerId(id); 41 | if (result.Success) 42 | { 43 | return Ok(result); 44 | } 45 | 46 | return BadRequest(result); 47 | } 48 | 49 | [HttpPost("add")] 50 | public IActionResult Add(User user) 51 | { 52 | var result = _userService.Add(user); 53 | if (result.Success) 54 | { 55 | return Ok(result); 56 | } 57 | 58 | return BadRequest(result); 59 | } 60 | 61 | [HttpPost("delete")] 62 | public IActionResult Delete(User user) 63 | { 64 | var result = _userService.Delete(user); 65 | if (result.Success) 66 | { 67 | return Ok(result); 68 | } 69 | 70 | return BadRequest(result); 71 | } 72 | } 73 | } 74 | -------------------------------------------------------------------------------- /WebAPI/Program.cs: -------------------------------------------------------------------------------- 1 | using Autofac.Extensions.DependencyInjection; 2 | using Microsoft.AspNetCore.Hosting; 3 | using Microsoft.Extensions.Configuration; 4 | using Microsoft.Extensions.Hosting; 5 | using Microsoft.Extensions.Logging; 6 | using System; 7 | using System.Collections.Generic; 8 | using System.Linq; 9 | using System.Threading.Tasks; 10 | using Autofac; 11 | using Business.DependencyResolvers.Autofac; 12 | 13 | namespace WebAPI 14 | { 15 | public class Program 16 | { 17 | public static void Main(string[] args) 18 | { 19 | CreateHostBuilder(args).Build().Run(); 20 | } 21 | 22 | public static IHostBuilder CreateHostBuilder(string[] args) => 23 | Host.CreateDefaultBuilder(args) 24 | .UseServiceProviderFactory(new AutofacServiceProviderFactory()) 25 | .ConfigureContainer(builder => 26 | { 27 | builder.RegisterModule(new AutofacBusinessModule()); 28 | }) 29 | .ConfigureWebHostDefaults(webBuilder => 30 | { 31 | webBuilder.UseStartup(); 32 | }); 33 | } 34 | } -------------------------------------------------------------------------------- /WebAPI/Properties/launchSettings.json: -------------------------------------------------------------------------------- 1 | { 2 | "$schema": "http://json.schemastore.org/launchsettings.json", 3 | "iisSettings": { 4 | "windowsAuthentication": false, 5 | "anonymousAuthentication": true, 6 | "iisExpress": { 7 | "applicationUrl": "http://localhost:52004", 8 | "sslPort": 44352 9 | } 10 | }, 11 | "profiles": { 12 | "IIS Express": { 13 | "commandName": "IISExpress", 14 | "launchBrowser": true, 15 | "launchUrl": "api", 16 | "environmentVariables": { 17 | "ASPNETCORE_ENVIRONMENT": "Development" 18 | } 19 | }, 20 | "WebAPI": { 21 | "commandName": "Project", 22 | "launchBrowser": true, 23 | "launchUrl": "api", 24 | "applicationUrl": "https://localhost:5001;http://localhost:5000", 25 | "environmentVariables": { 26 | "ASPNETCORE_ENVIRONMENT": "Development" 27 | } 28 | } 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /WebAPI/Startup.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MelihVarilci/ReCapProject/2b638d40aadb091a59ff2b9fff5ba0ff1bffdd66/WebAPI/Startup.cs -------------------------------------------------------------------------------- /WebAPI/WebAPI.csproj: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | netcoreapp3.1 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | -------------------------------------------------------------------------------- /WebAPI/WebAPI.csproj.user: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | ApiControllerEmptyScaffolder 5 | root/Common/Api 6 | 7 | -------------------------------------------------------------------------------- /WebAPI/appsettings.Development.json: -------------------------------------------------------------------------------- 1 | { 2 | "Logging": { 3 | "LogLevel": { 4 | "Default": "Information", 5 | "Microsoft": "Warning", 6 | "Microsoft.Hosting.Lifetime": "Information" 7 | } 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /WebAPI/appsettings.json: -------------------------------------------------------------------------------- 1 | { 2 | "TokenOptions": { 3 | "Audience": "melih@melih.com", 4 | "Issuer": "melih@melih.com", 5 | "AccessTokenExpiration": 10, 6 | "SecurityKey": "mysupersecretkeymysupersecretkey" 7 | }, 8 | "Logging": { 9 | "LogLevel": { 10 | "Default": "Information", 11 | "Microsoft": "Warning", 12 | "Microsoft.Hosting.Lifetime": "Information" 13 | } 14 | }, 15 | "AllowedHosts": "*" 16 | } 17 | -------------------------------------------------------------------------------- /WebAPI/bin/Debug/netcoreapp3.1/Autofac.Extensions.DependencyInjection.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MelihVarilci/ReCapProject/2b638d40aadb091a59ff2b9fff5ba0ff1bffdd66/WebAPI/bin/Debug/netcoreapp3.1/Autofac.Extensions.DependencyInjection.dll -------------------------------------------------------------------------------- /WebAPI/bin/Debug/netcoreapp3.1/Autofac.Extras.DynamicProxy.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MelihVarilci/ReCapProject/2b638d40aadb091a59ff2b9fff5ba0ff1bffdd66/WebAPI/bin/Debug/netcoreapp3.1/Autofac.Extras.DynamicProxy.dll -------------------------------------------------------------------------------- /WebAPI/bin/Debug/netcoreapp3.1/Autofac.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MelihVarilci/ReCapProject/2b638d40aadb091a59ff2b9fff5ba0ff1bffdd66/WebAPI/bin/Debug/netcoreapp3.1/Autofac.dll -------------------------------------------------------------------------------- /WebAPI/bin/Debug/netcoreapp3.1/Business.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MelihVarilci/ReCapProject/2b638d40aadb091a59ff2b9fff5ba0ff1bffdd66/WebAPI/bin/Debug/netcoreapp3.1/Business.dll -------------------------------------------------------------------------------- /WebAPI/bin/Debug/netcoreapp3.1/Business.pdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MelihVarilci/ReCapProject/2b638d40aadb091a59ff2b9fff5ba0ff1bffdd66/WebAPI/bin/Debug/netcoreapp3.1/Business.pdb -------------------------------------------------------------------------------- /WebAPI/bin/Debug/netcoreapp3.1/Castle.Core.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MelihVarilci/ReCapProject/2b638d40aadb091a59ff2b9fff5ba0ff1bffdd66/WebAPI/bin/Debug/netcoreapp3.1/Castle.Core.dll -------------------------------------------------------------------------------- /WebAPI/bin/Debug/netcoreapp3.1/Core.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MelihVarilci/ReCapProject/2b638d40aadb091a59ff2b9fff5ba0ff1bffdd66/WebAPI/bin/Debug/netcoreapp3.1/Core.dll -------------------------------------------------------------------------------- /WebAPI/bin/Debug/netcoreapp3.1/Core.pdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MelihVarilci/ReCapProject/2b638d40aadb091a59ff2b9fff5ba0ff1bffdd66/WebAPI/bin/Debug/netcoreapp3.1/Core.pdb -------------------------------------------------------------------------------- /WebAPI/bin/Debug/netcoreapp3.1/DataAccess.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MelihVarilci/ReCapProject/2b638d40aadb091a59ff2b9fff5ba0ff1bffdd66/WebAPI/bin/Debug/netcoreapp3.1/DataAccess.dll -------------------------------------------------------------------------------- /WebAPI/bin/Debug/netcoreapp3.1/DataAccess.pdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MelihVarilci/ReCapProject/2b638d40aadb091a59ff2b9fff5ba0ff1bffdd66/WebAPI/bin/Debug/netcoreapp3.1/DataAccess.pdb -------------------------------------------------------------------------------- /WebAPI/bin/Debug/netcoreapp3.1/Entities.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MelihVarilci/ReCapProject/2b638d40aadb091a59ff2b9fff5ba0ff1bffdd66/WebAPI/bin/Debug/netcoreapp3.1/Entities.dll -------------------------------------------------------------------------------- /WebAPI/bin/Debug/netcoreapp3.1/Entities.pdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MelihVarilci/ReCapProject/2b638d40aadb091a59ff2b9fff5ba0ff1bffdd66/WebAPI/bin/Debug/netcoreapp3.1/Entities.pdb -------------------------------------------------------------------------------- /WebAPI/bin/Debug/netcoreapp3.1/FluentValidation.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MelihVarilci/ReCapProject/2b638d40aadb091a59ff2b9fff5ba0ff1bffdd66/WebAPI/bin/Debug/netcoreapp3.1/FluentValidation.dll -------------------------------------------------------------------------------- /WebAPI/bin/Debug/netcoreapp3.1/MicroKnights.Log4NetAdoNetAppender.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MelihVarilci/ReCapProject/2b638d40aadb091a59ff2b9fff5ba0ff1bffdd66/WebAPI/bin/Debug/netcoreapp3.1/MicroKnights.Log4NetAdoNetAppender.dll -------------------------------------------------------------------------------- /WebAPI/bin/Debug/netcoreapp3.1/Microsoft.AI.DependencyCollector.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MelihVarilci/ReCapProject/2b638d40aadb091a59ff2b9fff5ba0ff1bffdd66/WebAPI/bin/Debug/netcoreapp3.1/Microsoft.AI.DependencyCollector.dll -------------------------------------------------------------------------------- /WebAPI/bin/Debug/netcoreapp3.1/Microsoft.AI.EventCounterCollector.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MelihVarilci/ReCapProject/2b638d40aadb091a59ff2b9fff5ba0ff1bffdd66/WebAPI/bin/Debug/netcoreapp3.1/Microsoft.AI.EventCounterCollector.dll -------------------------------------------------------------------------------- /WebAPI/bin/Debug/netcoreapp3.1/Microsoft.AI.PerfCounterCollector.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MelihVarilci/ReCapProject/2b638d40aadb091a59ff2b9fff5ba0ff1bffdd66/WebAPI/bin/Debug/netcoreapp3.1/Microsoft.AI.PerfCounterCollector.dll -------------------------------------------------------------------------------- /WebAPI/bin/Debug/netcoreapp3.1/Microsoft.AI.ServerTelemetryChannel.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MelihVarilci/ReCapProject/2b638d40aadb091a59ff2b9fff5ba0ff1bffdd66/WebAPI/bin/Debug/netcoreapp3.1/Microsoft.AI.ServerTelemetryChannel.dll -------------------------------------------------------------------------------- /WebAPI/bin/Debug/netcoreapp3.1/Microsoft.AI.WindowsServer.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MelihVarilci/ReCapProject/2b638d40aadb091a59ff2b9fff5ba0ff1bffdd66/WebAPI/bin/Debug/netcoreapp3.1/Microsoft.AI.WindowsServer.dll -------------------------------------------------------------------------------- /WebAPI/bin/Debug/netcoreapp3.1/Microsoft.ApplicationInsights.AspNetCore.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MelihVarilci/ReCapProject/2b638d40aadb091a59ff2b9fff5ba0ff1bffdd66/WebAPI/bin/Debug/netcoreapp3.1/Microsoft.ApplicationInsights.AspNetCore.dll -------------------------------------------------------------------------------- /WebAPI/bin/Debug/netcoreapp3.1/Microsoft.ApplicationInsights.Log4NetAppender.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MelihVarilci/ReCapProject/2b638d40aadb091a59ff2b9fff5ba0ff1bffdd66/WebAPI/bin/Debug/netcoreapp3.1/Microsoft.ApplicationInsights.Log4NetAppender.dll -------------------------------------------------------------------------------- /WebAPI/bin/Debug/netcoreapp3.1/Microsoft.ApplicationInsights.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MelihVarilci/ReCapProject/2b638d40aadb091a59ff2b9fff5ba0ff1bffdd66/WebAPI/bin/Debug/netcoreapp3.1/Microsoft.ApplicationInsights.dll -------------------------------------------------------------------------------- /WebAPI/bin/Debug/netcoreapp3.1/Microsoft.AspNetCore.Authentication.JwtBearer.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MelihVarilci/ReCapProject/2b638d40aadb091a59ff2b9fff5ba0ff1bffdd66/WebAPI/bin/Debug/netcoreapp3.1/Microsoft.AspNetCore.Authentication.JwtBearer.dll -------------------------------------------------------------------------------- /WebAPI/bin/Debug/netcoreapp3.1/Microsoft.AspNetCore.Http.Features.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MelihVarilci/ReCapProject/2b638d40aadb091a59ff2b9fff5ba0ff1bffdd66/WebAPI/bin/Debug/netcoreapp3.1/Microsoft.AspNetCore.Http.Features.dll -------------------------------------------------------------------------------- /WebAPI/bin/Debug/netcoreapp3.1/Microsoft.Bcl.AsyncInterfaces.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MelihVarilci/ReCapProject/2b638d40aadb091a59ff2b9fff5ba0ff1bffdd66/WebAPI/bin/Debug/netcoreapp3.1/Microsoft.Bcl.AsyncInterfaces.dll -------------------------------------------------------------------------------- /WebAPI/bin/Debug/netcoreapp3.1/Microsoft.Bcl.HashCode.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MelihVarilci/ReCapProject/2b638d40aadb091a59ff2b9fff5ba0ff1bffdd66/WebAPI/bin/Debug/netcoreapp3.1/Microsoft.Bcl.HashCode.dll -------------------------------------------------------------------------------- /WebAPI/bin/Debug/netcoreapp3.1/Microsoft.Build.Framework.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MelihVarilci/ReCapProject/2b638d40aadb091a59ff2b9fff5ba0ff1bffdd66/WebAPI/bin/Debug/netcoreapp3.1/Microsoft.Build.Framework.dll -------------------------------------------------------------------------------- /WebAPI/bin/Debug/netcoreapp3.1/Microsoft.Data.SqlClient.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MelihVarilci/ReCapProject/2b638d40aadb091a59ff2b9fff5ba0ff1bffdd66/WebAPI/bin/Debug/netcoreapp3.1/Microsoft.Data.SqlClient.dll -------------------------------------------------------------------------------- /WebAPI/bin/Debug/netcoreapp3.1/Microsoft.EntityFrameworkCore.Abstractions.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MelihVarilci/ReCapProject/2b638d40aadb091a59ff2b9fff5ba0ff1bffdd66/WebAPI/bin/Debug/netcoreapp3.1/Microsoft.EntityFrameworkCore.Abstractions.dll -------------------------------------------------------------------------------- /WebAPI/bin/Debug/netcoreapp3.1/Microsoft.EntityFrameworkCore.Relational.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MelihVarilci/ReCapProject/2b638d40aadb091a59ff2b9fff5ba0ff1bffdd66/WebAPI/bin/Debug/netcoreapp3.1/Microsoft.EntityFrameworkCore.Relational.dll -------------------------------------------------------------------------------- /WebAPI/bin/Debug/netcoreapp3.1/Microsoft.EntityFrameworkCore.SqlServer.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MelihVarilci/ReCapProject/2b638d40aadb091a59ff2b9fff5ba0ff1bffdd66/WebAPI/bin/Debug/netcoreapp3.1/Microsoft.EntityFrameworkCore.SqlServer.dll -------------------------------------------------------------------------------- /WebAPI/bin/Debug/netcoreapp3.1/Microsoft.EntityFrameworkCore.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MelihVarilci/ReCapProject/2b638d40aadb091a59ff2b9fff5ba0ff1bffdd66/WebAPI/bin/Debug/netcoreapp3.1/Microsoft.EntityFrameworkCore.dll -------------------------------------------------------------------------------- /WebAPI/bin/Debug/netcoreapp3.1/Microsoft.Extensions.Caching.Abstractions.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MelihVarilci/ReCapProject/2b638d40aadb091a59ff2b9fff5ba0ff1bffdd66/WebAPI/bin/Debug/netcoreapp3.1/Microsoft.Extensions.Caching.Abstractions.dll -------------------------------------------------------------------------------- /WebAPI/bin/Debug/netcoreapp3.1/Microsoft.Extensions.Caching.Memory.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MelihVarilci/ReCapProject/2b638d40aadb091a59ff2b9fff5ba0ff1bffdd66/WebAPI/bin/Debug/netcoreapp3.1/Microsoft.Extensions.Caching.Memory.dll -------------------------------------------------------------------------------- /WebAPI/bin/Debug/netcoreapp3.1/Microsoft.Extensions.Configuration.Abstractions.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MelihVarilci/ReCapProject/2b638d40aadb091a59ff2b9fff5ba0ff1bffdd66/WebAPI/bin/Debug/netcoreapp3.1/Microsoft.Extensions.Configuration.Abstractions.dll -------------------------------------------------------------------------------- /WebAPI/bin/Debug/netcoreapp3.1/Microsoft.Extensions.Configuration.Binder.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MelihVarilci/ReCapProject/2b638d40aadb091a59ff2b9fff5ba0ff1bffdd66/WebAPI/bin/Debug/netcoreapp3.1/Microsoft.Extensions.Configuration.Binder.dll -------------------------------------------------------------------------------- /WebAPI/bin/Debug/netcoreapp3.1/Microsoft.Extensions.Configuration.FileExtensions.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MelihVarilci/ReCapProject/2b638d40aadb091a59ff2b9fff5ba0ff1bffdd66/WebAPI/bin/Debug/netcoreapp3.1/Microsoft.Extensions.Configuration.FileExtensions.dll -------------------------------------------------------------------------------- /WebAPI/bin/Debug/netcoreapp3.1/Microsoft.Extensions.Configuration.Json.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MelihVarilci/ReCapProject/2b638d40aadb091a59ff2b9fff5ba0ff1bffdd66/WebAPI/bin/Debug/netcoreapp3.1/Microsoft.Extensions.Configuration.Json.dll -------------------------------------------------------------------------------- /WebAPI/bin/Debug/netcoreapp3.1/Microsoft.Extensions.Configuration.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MelihVarilci/ReCapProject/2b638d40aadb091a59ff2b9fff5ba0ff1bffdd66/WebAPI/bin/Debug/netcoreapp3.1/Microsoft.Extensions.Configuration.dll -------------------------------------------------------------------------------- /WebAPI/bin/Debug/netcoreapp3.1/Microsoft.Extensions.DependencyInjection.Abstractions.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MelihVarilci/ReCapProject/2b638d40aadb091a59ff2b9fff5ba0ff1bffdd66/WebAPI/bin/Debug/netcoreapp3.1/Microsoft.Extensions.DependencyInjection.Abstractions.dll -------------------------------------------------------------------------------- /WebAPI/bin/Debug/netcoreapp3.1/Microsoft.Extensions.DependencyInjection.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MelihVarilci/ReCapProject/2b638d40aadb091a59ff2b9fff5ba0ff1bffdd66/WebAPI/bin/Debug/netcoreapp3.1/Microsoft.Extensions.DependencyInjection.dll -------------------------------------------------------------------------------- /WebAPI/bin/Debug/netcoreapp3.1/Microsoft.Extensions.DiagnosticAdapter.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MelihVarilci/ReCapProject/2b638d40aadb091a59ff2b9fff5ba0ff1bffdd66/WebAPI/bin/Debug/netcoreapp3.1/Microsoft.Extensions.DiagnosticAdapter.dll -------------------------------------------------------------------------------- /WebAPI/bin/Debug/netcoreapp3.1/Microsoft.Extensions.FileProviders.Abstractions.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MelihVarilci/ReCapProject/2b638d40aadb091a59ff2b9fff5ba0ff1bffdd66/WebAPI/bin/Debug/netcoreapp3.1/Microsoft.Extensions.FileProviders.Abstractions.dll -------------------------------------------------------------------------------- /WebAPI/bin/Debug/netcoreapp3.1/Microsoft.Extensions.FileProviders.Physical.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MelihVarilci/ReCapProject/2b638d40aadb091a59ff2b9fff5ba0ff1bffdd66/WebAPI/bin/Debug/netcoreapp3.1/Microsoft.Extensions.FileProviders.Physical.dll -------------------------------------------------------------------------------- /WebAPI/bin/Debug/netcoreapp3.1/Microsoft.Extensions.FileSystemGlobbing.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MelihVarilci/ReCapProject/2b638d40aadb091a59ff2b9fff5ba0ff1bffdd66/WebAPI/bin/Debug/netcoreapp3.1/Microsoft.Extensions.FileSystemGlobbing.dll -------------------------------------------------------------------------------- /WebAPI/bin/Debug/netcoreapp3.1/Microsoft.Extensions.Logging.Abstractions.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MelihVarilci/ReCapProject/2b638d40aadb091a59ff2b9fff5ba0ff1bffdd66/WebAPI/bin/Debug/netcoreapp3.1/Microsoft.Extensions.Logging.Abstractions.dll -------------------------------------------------------------------------------- /WebAPI/bin/Debug/netcoreapp3.1/Microsoft.Extensions.Logging.ApplicationInsights.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MelihVarilci/ReCapProject/2b638d40aadb091a59ff2b9fff5ba0ff1bffdd66/WebAPI/bin/Debug/netcoreapp3.1/Microsoft.Extensions.Logging.ApplicationInsights.dll -------------------------------------------------------------------------------- /WebAPI/bin/Debug/netcoreapp3.1/Microsoft.Extensions.Logging.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MelihVarilci/ReCapProject/2b638d40aadb091a59ff2b9fff5ba0ff1bffdd66/WebAPI/bin/Debug/netcoreapp3.1/Microsoft.Extensions.Logging.dll -------------------------------------------------------------------------------- /WebAPI/bin/Debug/netcoreapp3.1/Microsoft.Extensions.Options.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MelihVarilci/ReCapProject/2b638d40aadb091a59ff2b9fff5ba0ff1bffdd66/WebAPI/bin/Debug/netcoreapp3.1/Microsoft.Extensions.Options.dll -------------------------------------------------------------------------------- /WebAPI/bin/Debug/netcoreapp3.1/Microsoft.Extensions.PlatformAbstractions.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MelihVarilci/ReCapProject/2b638d40aadb091a59ff2b9fff5ba0ff1bffdd66/WebAPI/bin/Debug/netcoreapp3.1/Microsoft.Extensions.PlatformAbstractions.dll -------------------------------------------------------------------------------- /WebAPI/bin/Debug/netcoreapp3.1/Microsoft.Extensions.Primitives.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MelihVarilci/ReCapProject/2b638d40aadb091a59ff2b9fff5ba0ff1bffdd66/WebAPI/bin/Debug/netcoreapp3.1/Microsoft.Extensions.Primitives.dll -------------------------------------------------------------------------------- /WebAPI/bin/Debug/netcoreapp3.1/Microsoft.Identity.Client.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MelihVarilci/ReCapProject/2b638d40aadb091a59ff2b9fff5ba0ff1bffdd66/WebAPI/bin/Debug/netcoreapp3.1/Microsoft.Identity.Client.dll -------------------------------------------------------------------------------- /WebAPI/bin/Debug/netcoreapp3.1/Microsoft.IdentityModel.JsonWebTokens.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MelihVarilci/ReCapProject/2b638d40aadb091a59ff2b9fff5ba0ff1bffdd66/WebAPI/bin/Debug/netcoreapp3.1/Microsoft.IdentityModel.JsonWebTokens.dll -------------------------------------------------------------------------------- /WebAPI/bin/Debug/netcoreapp3.1/Microsoft.IdentityModel.Logging.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MelihVarilci/ReCapProject/2b638d40aadb091a59ff2b9fff5ba0ff1bffdd66/WebAPI/bin/Debug/netcoreapp3.1/Microsoft.IdentityModel.Logging.dll -------------------------------------------------------------------------------- /WebAPI/bin/Debug/netcoreapp3.1/Microsoft.IdentityModel.Protocols.OpenIdConnect.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MelihVarilci/ReCapProject/2b638d40aadb091a59ff2b9fff5ba0ff1bffdd66/WebAPI/bin/Debug/netcoreapp3.1/Microsoft.IdentityModel.Protocols.OpenIdConnect.dll -------------------------------------------------------------------------------- /WebAPI/bin/Debug/netcoreapp3.1/Microsoft.IdentityModel.Protocols.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MelihVarilci/ReCapProject/2b638d40aadb091a59ff2b9fff5ba0ff1bffdd66/WebAPI/bin/Debug/netcoreapp3.1/Microsoft.IdentityModel.Protocols.dll -------------------------------------------------------------------------------- /WebAPI/bin/Debug/netcoreapp3.1/Microsoft.IdentityModel.Tokens.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MelihVarilci/ReCapProject/2b638d40aadb091a59ff2b9fff5ba0ff1bffdd66/WebAPI/bin/Debug/netcoreapp3.1/Microsoft.IdentityModel.Tokens.dll -------------------------------------------------------------------------------- /WebAPI/bin/Debug/netcoreapp3.1/Newtonsoft.Json.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MelihVarilci/ReCapProject/2b638d40aadb091a59ff2b9fff5ba0ff1bffdd66/WebAPI/bin/Debug/netcoreapp3.1/Newtonsoft.Json.dll -------------------------------------------------------------------------------- /WebAPI/bin/Debug/netcoreapp3.1/System.Collections.Immutable.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MelihVarilci/ReCapProject/2b638d40aadb091a59ff2b9fff5ba0ff1bffdd66/WebAPI/bin/Debug/netcoreapp3.1/System.Collections.Immutable.dll -------------------------------------------------------------------------------- /WebAPI/bin/Debug/netcoreapp3.1/System.Configuration.ConfigurationManager.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MelihVarilci/ReCapProject/2b638d40aadb091a59ff2b9fff5ba0ff1bffdd66/WebAPI/bin/Debug/netcoreapp3.1/System.Configuration.ConfigurationManager.dll -------------------------------------------------------------------------------- /WebAPI/bin/Debug/netcoreapp3.1/System.Diagnostics.DiagnosticSource.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MelihVarilci/ReCapProject/2b638d40aadb091a59ff2b9fff5ba0ff1bffdd66/WebAPI/bin/Debug/netcoreapp3.1/System.Diagnostics.DiagnosticSource.dll -------------------------------------------------------------------------------- /WebAPI/bin/Debug/netcoreapp3.1/System.Diagnostics.PerformanceCounter.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MelihVarilci/ReCapProject/2b638d40aadb091a59ff2b9fff5ba0ff1bffdd66/WebAPI/bin/Debug/netcoreapp3.1/System.Diagnostics.PerformanceCounter.dll -------------------------------------------------------------------------------- /WebAPI/bin/Debug/netcoreapp3.1/System.IO.Pipelines.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MelihVarilci/ReCapProject/2b638d40aadb091a59ff2b9fff5ba0ff1bffdd66/WebAPI/bin/Debug/netcoreapp3.1/System.IO.Pipelines.dll -------------------------------------------------------------------------------- /WebAPI/bin/Debug/netcoreapp3.1/System.IdentityModel.Tokens.Jwt.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MelihVarilci/ReCapProject/2b638d40aadb091a59ff2b9fff5ba0ff1bffdd66/WebAPI/bin/Debug/netcoreapp3.1/System.IdentityModel.Tokens.Jwt.dll -------------------------------------------------------------------------------- /WebAPI/bin/Debug/netcoreapp3.1/System.Runtime.Caching.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MelihVarilci/ReCapProject/2b638d40aadb091a59ff2b9fff5ba0ff1bffdd66/WebAPI/bin/Debug/netcoreapp3.1/System.Runtime.Caching.dll -------------------------------------------------------------------------------- /WebAPI/bin/Debug/netcoreapp3.1/System.Security.Cryptography.ProtectedData.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MelihVarilci/ReCapProject/2b638d40aadb091a59ff2b9fff5ba0ff1bffdd66/WebAPI/bin/Debug/netcoreapp3.1/System.Security.Cryptography.ProtectedData.dll -------------------------------------------------------------------------------- /WebAPI/bin/Debug/netcoreapp3.1/WebAPI.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MelihVarilci/ReCapProject/2b638d40aadb091a59ff2b9fff5ba0ff1bffdd66/WebAPI/bin/Debug/netcoreapp3.1/WebAPI.dll -------------------------------------------------------------------------------- /WebAPI/bin/Debug/netcoreapp3.1/WebAPI.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MelihVarilci/ReCapProject/2b638d40aadb091a59ff2b9fff5ba0ff1bffdd66/WebAPI/bin/Debug/netcoreapp3.1/WebAPI.exe -------------------------------------------------------------------------------- /WebAPI/bin/Debug/netcoreapp3.1/WebAPI.pdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MelihVarilci/ReCapProject/2b638d40aadb091a59ff2b9fff5ba0ff1bffdd66/WebAPI/bin/Debug/netcoreapp3.1/WebAPI.pdb -------------------------------------------------------------------------------- /WebAPI/bin/Debug/netcoreapp3.1/WebAPI.runtimeconfig.dev.json: -------------------------------------------------------------------------------- 1 | { 2 | "runtimeOptions": { 3 | "additionalProbingPaths": [ 4 | "C:\\Users\\varil\\.dotnet\\store\\|arch|\\|tfm|", 5 | "C:\\Users\\varil\\.nuget\\packages" 6 | ] 7 | } 8 | } -------------------------------------------------------------------------------- /WebAPI/bin/Debug/netcoreapp3.1/WebAPI.runtimeconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "runtimeOptions": { 3 | "tfm": "netcoreapp3.1", 4 | "framework": { 5 | "name": "Microsoft.AspNetCore.App", 6 | "version": "3.1.0" 7 | }, 8 | "configProperties": { 9 | "System.GC.Server": true, 10 | "System.Runtime.Serialization.EnableUnsafeBinaryFormatterSerialization": false 11 | } 12 | } 13 | } -------------------------------------------------------------------------------- /WebAPI/bin/Debug/netcoreapp3.1/appsettings.Development.json: -------------------------------------------------------------------------------- 1 | { 2 | "Logging": { 3 | "LogLevel": { 4 | "Default": "Information", 5 | "Microsoft": "Warning", 6 | "Microsoft.Hosting.Lifetime": "Information" 7 | } 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /WebAPI/bin/Debug/netcoreapp3.1/appsettings.json: -------------------------------------------------------------------------------- 1 | { 2 | "TokenOptions": { 3 | "Audience": "melih@melih.com", 4 | "Issuer": "melih@melih.com", 5 | "AccessTokenExpiration": 10, 6 | "SecurityKey": "mysupersecretkeymysupersecretkey" 7 | }, 8 | "Logging": { 9 | "LogLevel": { 10 | "Default": "Information", 11 | "Microsoft": "Warning", 12 | "Microsoft.Hosting.Lifetime": "Information" 13 | } 14 | }, 15 | "AllowedHosts": "*" 16 | } 17 | -------------------------------------------------------------------------------- /WebAPI/bin/Debug/netcoreapp3.1/log4net.config: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | -------------------------------------------------------------------------------- /WebAPI/bin/Debug/netcoreapp3.1/log4net.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MelihVarilci/ReCapProject/2b638d40aadb091a59ff2b9fff5ba0ff1bffdd66/WebAPI/bin/Debug/netcoreapp3.1/log4net.dll -------------------------------------------------------------------------------- /WebAPI/bin/Debug/netcoreapp3.1/runtimes/unix/lib/netcoreapp2.0/System.Runtime.Caching.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MelihVarilci/ReCapProject/2b638d40aadb091a59ff2b9fff5ba0ff1bffdd66/WebAPI/bin/Debug/netcoreapp3.1/runtimes/unix/lib/netcoreapp2.0/System.Runtime.Caching.dll -------------------------------------------------------------------------------- /WebAPI/bin/Debug/netcoreapp3.1/runtimes/unix/lib/netcoreapp2.1/Microsoft.Data.SqlClient.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MelihVarilci/ReCapProject/2b638d40aadb091a59ff2b9fff5ba0ff1bffdd66/WebAPI/bin/Debug/netcoreapp3.1/runtimes/unix/lib/netcoreapp2.1/Microsoft.Data.SqlClient.dll -------------------------------------------------------------------------------- /WebAPI/bin/Debug/netcoreapp3.1/runtimes/win-arm64/native/sni.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MelihVarilci/ReCapProject/2b638d40aadb091a59ff2b9fff5ba0ff1bffdd66/WebAPI/bin/Debug/netcoreapp3.1/runtimes/win-arm64/native/sni.dll -------------------------------------------------------------------------------- /WebAPI/bin/Debug/netcoreapp3.1/runtimes/win-x64/native/sni.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MelihVarilci/ReCapProject/2b638d40aadb091a59ff2b9fff5ba0ff1bffdd66/WebAPI/bin/Debug/netcoreapp3.1/runtimes/win-x64/native/sni.dll -------------------------------------------------------------------------------- /WebAPI/bin/Debug/netcoreapp3.1/runtimes/win-x86/native/sni.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MelihVarilci/ReCapProject/2b638d40aadb091a59ff2b9fff5ba0ff1bffdd66/WebAPI/bin/Debug/netcoreapp3.1/runtimes/win-x86/native/sni.dll -------------------------------------------------------------------------------- /WebAPI/bin/Debug/netcoreapp3.1/runtimes/win/lib/netcoreapp2.0/System.Diagnostics.PerformanceCounter.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MelihVarilci/ReCapProject/2b638d40aadb091a59ff2b9fff5ba0ff1bffdd66/WebAPI/bin/Debug/netcoreapp3.1/runtimes/win/lib/netcoreapp2.0/System.Diagnostics.PerformanceCounter.dll -------------------------------------------------------------------------------- /WebAPI/bin/Debug/netcoreapp3.1/runtimes/win/lib/netcoreapp2.0/System.Runtime.Caching.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MelihVarilci/ReCapProject/2b638d40aadb091a59ff2b9fff5ba0ff1bffdd66/WebAPI/bin/Debug/netcoreapp3.1/runtimes/win/lib/netcoreapp2.0/System.Runtime.Caching.dll -------------------------------------------------------------------------------- /WebAPI/bin/Debug/netcoreapp3.1/runtimes/win/lib/netcoreapp2.1/Microsoft.Data.SqlClient.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MelihVarilci/ReCapProject/2b638d40aadb091a59ff2b9fff5ba0ff1bffdd66/WebAPI/bin/Debug/netcoreapp3.1/runtimes/win/lib/netcoreapp2.1/Microsoft.Data.SqlClient.dll -------------------------------------------------------------------------------- /WebAPI/bin/Debug/netcoreapp3.1/runtimes/win/lib/netstandard2.0/System.Security.Cryptography.ProtectedData.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MelihVarilci/ReCapProject/2b638d40aadb091a59ff2b9fff5ba0ff1bffdd66/WebAPI/bin/Debug/netcoreapp3.1/runtimes/win/lib/netstandard2.0/System.Security.Cryptography.ProtectedData.dll -------------------------------------------------------------------------------- /WebAPI/log4net.config: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | -------------------------------------------------------------------------------- /WebAPI/obj/Debug/netcoreapp3.1/.NETCoreApp,Version=v3.1.AssemblyAttributes.cs: -------------------------------------------------------------------------------- 1 | // 2 | using System; 3 | using System.Reflection; 4 | [assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETCoreApp,Version=v3.1", FrameworkDisplayName = "")] 5 | -------------------------------------------------------------------------------- /WebAPI/obj/Debug/netcoreapp3.1/WebAPI.AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | //------------------------------------------------------------------------------ 2 | // 3 | // This code was generated by a tool. 4 | // Runtime Version:4.0.30319.42000 5 | // 6 | // Changes to this file may cause incorrect behavior and will be lost if 7 | // the code is regenerated. 8 | // 9 | //------------------------------------------------------------------------------ 10 | 11 | using System; 12 | using System.Reflection; 13 | 14 | [assembly: System.Reflection.AssemblyCompanyAttribute("WebAPI")] 15 | [assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")] 16 | [assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")] 17 | [assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0")] 18 | [assembly: System.Reflection.AssemblyProductAttribute("WebAPI")] 19 | [assembly: System.Reflection.AssemblyTitleAttribute("WebAPI")] 20 | [assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")] 21 | 22 | // Generated by the MSBuild WriteCodeFragment class. 23 | 24 | -------------------------------------------------------------------------------- /WebAPI/obj/Debug/netcoreapp3.1/WebAPI.AssemblyInfoInputs.cache: -------------------------------------------------------------------------------- 1 | 8071d147e32d0630849d28d7010f1c7d9f5cfc82 2 | -------------------------------------------------------------------------------- /WebAPI/obj/Debug/netcoreapp3.1/WebAPI.MvcApplicationPartsAssemblyInfo.cache: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MelihVarilci/ReCapProject/2b638d40aadb091a59ff2b9fff5ba0ff1bffdd66/WebAPI/obj/Debug/netcoreapp3.1/WebAPI.MvcApplicationPartsAssemblyInfo.cache -------------------------------------------------------------------------------- /WebAPI/obj/Debug/netcoreapp3.1/WebAPI.RazorTargetAssemblyInfo.cache: -------------------------------------------------------------------------------- 1 | 2ba159081b2463c81a3b13e7540958b05f8628b8 2 | -------------------------------------------------------------------------------- /WebAPI/obj/Debug/netcoreapp3.1/WebAPI.assets.cache: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MelihVarilci/ReCapProject/2b638d40aadb091a59ff2b9fff5ba0ff1bffdd66/WebAPI/obj/Debug/netcoreapp3.1/WebAPI.assets.cache -------------------------------------------------------------------------------- /WebAPI/obj/Debug/netcoreapp3.1/WebAPI.csproj.CopyComplete: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MelihVarilci/ReCapProject/2b638d40aadb091a59ff2b9fff5ba0ff1bffdd66/WebAPI/obj/Debug/netcoreapp3.1/WebAPI.csproj.CopyComplete -------------------------------------------------------------------------------- /WebAPI/obj/Debug/netcoreapp3.1/WebAPI.csproj.CoreCompileInputs.cache: -------------------------------------------------------------------------------- 1 | 2617ebf3cf4d2dd64aa2453e165a1a1045087c7f 2 | -------------------------------------------------------------------------------- /WebAPI/obj/Debug/netcoreapp3.1/WebAPI.csprojAssemblyReference.cache: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MelihVarilci/ReCapProject/2b638d40aadb091a59ff2b9fff5ba0ff1bffdd66/WebAPI/obj/Debug/netcoreapp3.1/WebAPI.csprojAssemblyReference.cache -------------------------------------------------------------------------------- /WebAPI/obj/Debug/netcoreapp3.1/WebAPI.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MelihVarilci/ReCapProject/2b638d40aadb091a59ff2b9fff5ba0ff1bffdd66/WebAPI/obj/Debug/netcoreapp3.1/WebAPI.dll -------------------------------------------------------------------------------- /WebAPI/obj/Debug/netcoreapp3.1/WebAPI.genruntimeconfig.cache: -------------------------------------------------------------------------------- 1 | 4a2a4fb070e57e00e698ae2451c8b8829fe40d56 2 | -------------------------------------------------------------------------------- /WebAPI/obj/Debug/netcoreapp3.1/WebAPI.pdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MelihVarilci/ReCapProject/2b638d40aadb091a59ff2b9fff5ba0ff1bffdd66/WebAPI/obj/Debug/netcoreapp3.1/WebAPI.pdb -------------------------------------------------------------------------------- /WebAPI/obj/Debug/netcoreapp3.1/apphost.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MelihVarilci/ReCapProject/2b638d40aadb091a59ff2b9fff5ba0ff1bffdd66/WebAPI/obj/Debug/netcoreapp3.1/apphost.exe -------------------------------------------------------------------------------- /WebAPI/obj/Debug/netcoreapp3.1/staticwebassets/WebAPI.StaticWebAssets.Manifest.cache: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MelihVarilci/ReCapProject/2b638d40aadb091a59ff2b9fff5ba0ff1bffdd66/WebAPI/obj/Debug/netcoreapp3.1/staticwebassets/WebAPI.StaticWebAssets.Manifest.cache -------------------------------------------------------------------------------- /WebAPI/obj/Debug/netcoreapp3.1/staticwebassets/WebAPI.StaticWebAssets.xml: -------------------------------------------------------------------------------- 1 |  -------------------------------------------------------------------------------- /WebAPI/obj/WebAPI.csproj.nuget.g.props: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | True 5 | NuGet 6 | $(MSBuildThisFileDirectory)project.assets.json 7 | $(UserProfile)\.nuget\packages\ 8 | C:\Users\varil\.nuget\packages\ 9 | PackageReference 10 | 5.9.1 11 | 12 | 13 | 14 | 15 | 16 | $(MSBuildAllProjects);$(MSBuildThisFileFullPath) 17 | 18 | -------------------------------------------------------------------------------- /WebAPI/obj/WebAPI.csproj.nuget.g.targets: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | $(MSBuildAllProjects);$(MSBuildThisFileFullPath) 5 | 6 | -------------------------------------------------------------------------------- /WebAPI/wwwroot/Images/3149509df6104ca38e333aa9a43b5336.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MelihVarilci/ReCapProject/2b638d40aadb091a59ff2b9fff5ba0ff1bffdd66/WebAPI/wwwroot/Images/3149509df6104ca38e333aa9a43b5336.jpg -------------------------------------------------------------------------------- /WebAPI/wwwroot/Images/6dcd600067304287957532a07d7ca4f9.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MelihVarilci/ReCapProject/2b638d40aadb091a59ff2b9fff5ba0ff1bffdd66/WebAPI/wwwroot/Images/6dcd600067304287957532a07d7ca4f9.jpg -------------------------------------------------------------------------------- /WebAPI/wwwroot/Images/b7fd5e138f9644deb1051c357b1b0be4.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MelihVarilci/ReCapProject/2b638d40aadb091a59ff2b9fff5ba0ff1bffdd66/WebAPI/wwwroot/Images/b7fd5e138f9644deb1051c357b1b0be4.jpg -------------------------------------------------------------------------------- /WebAPI/wwwroot/Images/d5ced2c41afc418ca5031e738d096928.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MelihVarilci/ReCapProject/2b638d40aadb091a59ff2b9fff5ba0ff1bffdd66/WebAPI/wwwroot/Images/d5ced2c41afc418ca5031e738d096928.jpg -------------------------------------------------------------------------------- /WebAPI/wwwroot/Images/default.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MelihVarilci/ReCapProject/2b638d40aadb091a59ff2b9fff5ba0ff1bffdd66/WebAPI/wwwroot/Images/default.jpg -------------------------------------------------------------------------------- /WebAPI/wwwroot/Images/e39aa1493c834451bd54f573be04c85a.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MelihVarilci/ReCapProject/2b638d40aadb091a59ff2b9fff5ba0ff1bffdd66/WebAPI/wwwroot/Images/e39aa1493c834451bd54f573be04c85a.jpg -------------------------------------------------------------------------------- /WebAPI/wwwroot/Images/efafce3d9da7463aab36171b1aedfec0.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MelihVarilci/ReCapProject/2b638d40aadb091a59ff2b9fff5ba0ff1bffdd66/WebAPI/wwwroot/Images/efafce3d9da7463aab36171b1aedfec0.jpg --------------------------------------------------------------------------------