mirror of
https://github.com/Artemis-RGB/Artemis
synced 2026-11-12 11:56:30 +00:00
Fully implemented the surface service which contains all storage logic
This commit is contained in:
1 parent
04c5aa40fc
commit
c4e5e412e0
8 files changed
+284
-117
No files matched your search
@@ -22,6 +22,11 @@ namespace Artemis.Storage.Repositories
|
||||
_dbContext.Surfaces.Add(surfaceEntity);
|
||||
}
|
||||
|
||||
public void Remove(SurfaceEntity surfaceEntity)
|
||||
{
|
||||
_dbContext.Surfaces.Remove(surfaceEntity);
|
||||
}
|
||||
|
||||
public SurfaceEntity Get(string name)
|
||||
{
|
||||
return _dbContext.Surfaces.Include(s => s.SurfacePositions).FirstOrDefault(p => p.Name == name);
|
||||
|
||||
Reference in new issue
Block a user