Initial Commit.

This commit is contained in:
ivancheahhh
2023-12-31 20:24:44 -07:00
parent 91e379ca0d
commit 8e9d7760be
90 changed files with 74999 additions and 0 deletions

28
Program.cs Normal file
View File

@@ -0,0 +1,28 @@
using CarCareTracker.External.Implementations;
using CarCareTracker.External.Interfaces;
var builder = WebApplication.CreateBuilder(args);
// Add services to the container.
builder.Services.AddControllersWithViews();
builder.Services.AddSingleton<IVehicleDataAccess, VehicleDataAccess>();
builder.Services.AddSingleton<INoteDataAccess, NoteDataAccess>();
var app = builder.Build();
// Configure the HTTP request pipeline.
if (!app.Environment.IsDevelopment())
{
app.UseExceptionHandler("/Home/Error");
}
app.UseStaticFiles();
app.UseRouting();
app.UseAuthorization();
app.MapControllerRoute(
name: "default",
pattern: "{controller=Home}/{action=Index}/{id?}");
app.Run();