public bool Delete(DxfFile dxfFile)
 {
     _applicationDbContext.DxfFiles.Remove(dxfFile);
     return(_applicationDbContext.SaveChanges() > 0);
 }
 public bool Update(DxfFile dxfFile)
 {
     _applicationDbContext.DxfFiles.Attach(dxfFile);
     _applicationDbContext.Entry(dxfFile).State = EntityState.Modified;
     return(_applicationDbContext.SaveChanges() > 0);
 }
 public DxfFile Add(DxfFile dxfFile)
 {
     _applicationDbContext.DxfFiles.Add(dxfFile);
     return(_applicationDbContext.SaveChanges() > 0 ? dxfFile : null);
 }