Fix tooltable

Frontend - Removed useless delete buttons & bug fix
Backend - fix shanks delete
This commit is contained in:
Lucio Maranta
2019-02-15 13:34:23 +01:00
parent b8b8127eb0
commit 3253c48501
11 changed files with 125 additions and 57 deletions
@@ -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