private static void RemovePrinter() { System.Console.Clear(); System.Console.WriteLine("Enter printer name"); string name = System.Console.ReadLine(); System.Console.WriteLine("Enter printer model"); string model = System.Console.ReadLine(); service.Remove(PrintersFabric.Create(name, model)); }
public static Printer ToPrinter(this DalPrinter printer) { return(PrintersFabric.Create(printer.Name, printer.Model)); }