commited scoobydoo
This commit is contained in:
@@ -0,0 +1,28 @@
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using Nexus.Application.DTOs.Projects;
|
||||
using Nexus.Application.Interfaces;
|
||||
using Nexus.Infrastructure.Persistence;
|
||||
|
||||
namespace Nexus.Infrastructure.Services;
|
||||
|
||||
public class ProjectService : IProjectService
|
||||
{
|
||||
private readonly NexusDbContext _db;
|
||||
|
||||
public ProjectService(NexusDbContext db)
|
||||
{
|
||||
_db = db;
|
||||
}
|
||||
|
||||
public async Task<List<ProjectDto>> GetAllAsync()
|
||||
{
|
||||
return await _db.Projects
|
||||
.Select(p => new ProjectDto
|
||||
{
|
||||
Id = p.Id,
|
||||
Name = p.Name,
|
||||
CreatedAt = p.CreatedAt
|
||||
})
|
||||
.ToListAsync();
|
||||
}
|
||||
}
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -13,7 +13,7 @@ using System.Reflection;
|
||||
[assembly: System.Reflection.AssemblyCompanyAttribute("Nexus.Infrastructure")]
|
||||
[assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")]
|
||||
[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")]
|
||||
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+ffb640049c77cdab4df81c7117b1ed3d9e24ddab")]
|
||||
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+077ee48927ee13d52504c44cc7a03836ec629880")]
|
||||
[assembly: System.Reflection.AssemblyProductAttribute("Nexus.Infrastructure")]
|
||||
[assembly: System.Reflection.AssemblyTitleAttribute("Nexus.Infrastructure")]
|
||||
[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]
|
||||
|
||||
+1
-1
@@ -1 +1 @@
|
||||
49d0be73ca54f0507f57e2888d8281cb12dd7e180c680f20061d2c16631ab1ae
|
||||
7242e1188045198925aa1679bddbacfea03121a711266c9581659b20e8f5d0c5
|
||||
|
||||
BIN
Binary file not shown.
+1
-1
@@ -1 +1 @@
|
||||
28cdf172aae0285d81941db1b92e3ab2bcfc42a4e69af523e8d0bfd5f95e3ac4
|
||||
309cf6e6ed9718b4d459bdf1f24005abb8e7976e48d1bb6211bad446c4279fbf
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user