Moved implementation out of interface
This commit is contained in:
@@ -10,6 +10,19 @@ namespace WD7UVN_HFT_2023241.Logic
|
||||
public ICRUD CRUDOperations { get; set; }
|
||||
|
||||
//additional, non-CRUD operations
|
||||
public IQueryable<Employee> WhoWorksInMaintainerTeam(int maintainerTeamId);
|
||||
public IQueryable<Employee> GetSubordinates(int managerId);
|
||||
public IQueryable<Customer> WhoUsesService(int serviceId);
|
||||
}
|
||||
|
||||
public class LogicServices : ILogicServices
|
||||
{
|
||||
public ICRUD CRUDOperations { get; set; }
|
||||
|
||||
public LogicServices(ICRUD CRUDOperations)
|
||||
{
|
||||
this.CRUDOperations = CRUDOperations;
|
||||
}
|
||||
|
||||
public IQueryable<Employee> WhoWorksInMaintainerTeam(int maintainerTeamId)
|
||||
{
|
||||
@@ -32,14 +45,4 @@ namespace WD7UVN_HFT_2023241.Logic
|
||||
.Where(c => c.SERVICE_ID == serviceId);
|
||||
}
|
||||
}
|
||||
|
||||
public class LogicServices : ILogicServices
|
||||
{
|
||||
public ICRUD CRUDOperations { get; set; }
|
||||
|
||||
public LogicServices(ICRUD CRUDOperations)
|
||||
{
|
||||
this.CRUDOperations = CRUDOperations;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user