예제 #1
0
        public static List <AutoType> GetAllAutoTypes()
        {
            var getAllSo = new GetAllSO();
            var tmpList  = getAllSo.ExecuteSO(new AutoType()) as List <IGenericObject>;

            return(tmpList?.Cast <AutoType>().ToList());
        }
예제 #2
0
        public static List <Owner> GetAllOwners()
        {
            var getAllSo = new GetAllSO();
            var tmpList  = getAllSo.ExecuteSO(new Owner()) as List <IGenericObject>;

            return(tmpList?.Cast <Owner>().ToList());
        }
예제 #3
0
        public static List <Employee> GetAllEmployees()
        {
            var getAllSo = new GetAllSO();
            var tmpList  = getAllSo.ExecuteSO(new Employee()) as List <IGenericObject>;

            return(tmpList?.Cast <Employee>().ToList());
        }
예제 #4
0
        public static List <InvoiceItem> GetAllInvoiceItems()
        {
            var getAllSo = new GetAllSO();
            var tmpList  = getAllSo.ExecuteSO(new InvoiceItem()) as List <IGenericObject>;

            return(tmpList?.Cast <InvoiceItem>().ToList());
        }
예제 #5
0
        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);
        }