public List <VehicleSubType> GetVehicleSubTypeById(string id) { VehicleTypeRepository repo = new VehicleTypeRepository(CONNECTION_STRING); List <VehicleSubType> vehicleSubTypes = default(List <VehicleSubType>); Guid vehicleTypeId = Guid.Parse(id); vehicleSubTypes = repo.GetSubTypesForAType(vehicleTypeId); return(vehicleSubTypes); }
public List <VehicleSubType> GetVehicleSubType(VehicleSubTypeRequest VehicleType) { VehicleTypeRepository RepositoryObj = new VehicleTypeRepository(CONNECTION_STRING); return(RepositoryObj.GetSubTypesForAType(VehicleType.VehicleTypeID).ToList <VehicleSubType>()); }