Exemplo n.º 1
0
 public long AddTool(ToolRepresentation tool)
 {
     using (ISQLConnection dataSource = DataSource)
     {
         return(dataSource.AddTool(RepresentationConverter.convertTool(tool)));
     }
 }
Exemplo n.º 2
0
 public void UpdateTool(ToolRepresentation tool)
 {
     using (ISQLConnection datasource = DataSource)
     {
         datasource.UpdateTool(RepresentationConverter.convertTool(tool));
     }
 }
Exemplo n.º 3
0
 public List <ToolRepresentation> GetAllTools()
 {
     using (ISQLConnection dataSource = DataSource)
     {
         return(dataSource.GetAllTools().Select(t => RepresentationConverter.convertTool(t)).ToList());
     }
 }