Example #1
0
        public static List<Plan> GetAllPlansByClient(string client)
        {
            conClientes conClientes = new conClientes();
            conPlanes conPlanes = new conPlanes();
            conPlanes.CleanProperties(conPlanes);
            long id = conClientes.GetIDByAbreviaturaId(client);
            if (id != 0)
            {
                DataTable plans = conPlanes.GetAll(id);
                return plans.DataTableToList<Plan>();
            }

            return null;
        }