public static List <AutoType> GetAllAutoTypes() { var getAllSo = new GetAllSO(); var tmpList = getAllSo.ExecuteSO(new AutoType()) as List <IGenericObject>; return(tmpList?.Cast <AutoType>().ToList()); }
public static List <Owner> GetAllOwners() { var getAllSo = new GetAllSO(); var tmpList = getAllSo.ExecuteSO(new Owner()) as List <IGenericObject>; return(tmpList?.Cast <Owner>().ToList()); }
public static List <Employee> GetAllEmployees() { var getAllSo = new GetAllSO(); var tmpList = getAllSo.ExecuteSO(new Employee()) as List <IGenericObject>; return(tmpList?.Cast <Employee>().ToList()); }
public static List <InvoiceItem> GetAllInvoiceItems() { var getAllSo = new GetAllSO(); var tmpList = getAllSo.ExecuteSO(new InvoiceItem()) as List <IGenericObject>; return(tmpList?.Cast <InvoiceItem>().ToList()); }
public static List <string> GetEmployeesNames() { var getAllEmployees = new GetAllSO(); var list = getAllEmployees.ExecuteSO(new Employee()) as List <IGenericObject>; var employeesNames = new List <string>(); if (list == null) { return(employeesNames); } employeesNames.AddRange(from Employee rad in list select rad.Username); return(employeesNames); }