public IEnumerable <ProcessCellParameter> GetAllProcessCellParameters() { using (var context = new ConfigurationToolContext()) { var repository = new ProcessCellParameterRepository(context); return(repository.GetAll()); } }
public void DeleteProcessCellParameter(ProcessCellParameter processCellParameter) { using (ConfigurationToolContext context = new ConfigurationToolContext()) { var repository = new ProcessCellParameterRepository(context); repository.Delete(processCellParameter); context.SaveChanges(); } }