first push

This commit is contained in:
2026-05-16 21:29:22 +02:00
commit 25edd4fac7
68 changed files with 3475 additions and 0 deletions
+25
View File
@@ -0,0 +1,25 @@
using Microsoft.AspNetCore.Hosting;
using Microsoft.EntityFrameworkCore;
using ModelsLib;
using System;
using System.Collections.Generic;
using System.Text;
public class DesireService
{
private readonly IDbContextFactory<PhotoShareDbContext> _factory;
private readonly IWebHostEnvironment _env;
public DesireService(IDbContextFactory<PhotoShareDbContext> factory, IWebHostEnvironment env)
{
_factory = factory;
_env = env;
}
public List<string> GetDEsireShooting()
{
using var db = _factory.CreateDbContext();
return db.DesireDb.Select(ds => ds.Desire).ToList();
}
}