public PrintType GetPrintTypeById(int id) { IPrintTypeDB printTypeDb = new PrintTypeDB(); IPrintTypeManager printTypeManager = new PrintTypeManager(printTypeDb); return(printTypeManager.GetPrintTypeById(id)); }
public List <PrintType> GetAllPrintType() { IPrintTypeDB printTypeDb = new PrintTypeDB(); IPrintTypeManager printTypeManager = new PrintTypeManager(printTypeDb); return(printTypeManager.GetAllPrintType()); }
public int Print(int printTypeID, int personID, int numberOfCopies) { IPersonDB personDb = new PersonDB(); IPrintTypeDB printTypeDb = new PrintTypeDB(); IPersonManager personManager = new PersonManager(personDb, printTypeDb); return(personManager.Print(printTypeID, personID, numberOfCopies)); }
public int PayCafetaria(int personID, double value) { IPersonDB personDb = new PersonDB(); IPrintTypeDB printTypeDb = new PrintTypeDB(); IPersonManager personManager = new PersonManager(personDb, printTypeDb); return(personManager.PayCafetaria(personID, value)); }
public int AddMoneyToCard(int personID, double value) { IPersonDB personDb = new PersonDB(); IPrintTypeDB printTypeDb = new PrintTypeDB(); IPersonManager personManager = new PersonManager(personDb, printTypeDb); return(personManager.AddMoneyToCard(personID, value)); }
public Person GetPersonByUsername(string username) { IPersonDB personDb = new PersonDB(); IPrintTypeDB printTypeDb = new PrintTypeDB(); IPersonManager personManager = new PersonManager(personDb, printTypeDb); Person person = personManager.GetPersonByUsername(username); return(person); }
public Person GetPersonById(int id) { IPersonDB personDb = new PersonDB(); IPrintTypeDB printTypeDb = new PrintTypeDB(); IPersonManager personManager = new PersonManager(personDb, printTypeDb); Person person = personManager.GetPersonById(id); return(person); }
public List <Person> GetAllPerson() { IPersonDB personDb = new PersonDB(); IPrintTypeDB printTypeDb = new PrintTypeDB(); IPersonManager personManager = new PersonManager(personDb, printTypeDb); List <Person> persons = personManager.GetAllPersons(); return(persons); }