Template Response
This commit is contained in:
@@ -26,5 +26,16 @@ namespace PARR.DAL.Services.Implementations
|
||||
{
|
||||
return await EntitySet.FirstOrDefaultAsync(t => t.Name == name);
|
||||
}
|
||||
|
||||
public IQueryable<Template> GetWithIncludes()
|
||||
{
|
||||
return Get()
|
||||
.Include(h => h.Host)
|
||||
.Include(a => a.ApplicationsInWork)
|
||||
.ThenInclude(w => w!.Work)
|
||||
.ThenInclude(t => t!.Tnk)
|
||||
.ThenInclude(s => s!.Subprocess)
|
||||
.ThenInclude(p => p!.Process);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -6,5 +6,7 @@ namespace PARR.DAL.Services.Interfaces
|
||||
public interface ITemplateService : IBaseService<Template>
|
||||
{
|
||||
Task<Template?> GetTemplateByNameAsync(string name);
|
||||
|
||||
IQueryable<Template> GetWithIncludes();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user