Fix tooltable
Frontend - Removed useless delete buttons & bug fix Backend - fix shanks delete
This commit is contained in:
@@ -136,6 +136,16 @@ namespace Step.Database.Controllers
|
||||
return shank;
|
||||
}
|
||||
|
||||
public List<DbNcShankModel> FindShanksByFamilyId(int familyId)
|
||||
{
|
||||
return dbCtx
|
||||
.Tools
|
||||
.Include("Shank")
|
||||
.Where(x => x.FamilyId == familyId && x.ShankId != null)
|
||||
.Select(x => x.Shank)
|
||||
.ToList();
|
||||
}
|
||||
|
||||
public List<DTONcShankModel> GetShanks()
|
||||
{
|
||||
// Get shank from database
|
||||
|
||||
Reference in New Issue
Block a user