public static LOResponse CreateSession()
    {
        ApiDTO        apiDTO;
        CustomCsodDTO customCsodDTO;

        ApiObjects(out apiDTO, out customCsodDTO);

        LOItem loItem = GetLoItemSession();

        var loApi = new LoApi(apiDTO, customCsodDTO);


        LOResponse loResponse = loApi.PerformOperation(loItem, OperationTypeEnum.CREATE);

        return(loResponse);
    }
    public static void GetEventTraning()
    {
        ApiDTO        apiDTO;
        CustomCsodDTO customCsodDTO;

        ApiObjects(out apiDTO, out customCsodDTO);

        //apiDTO.Resource = "/Services/api/LO/GetDetails?objectId=243bae9c-dfa8-433f-b8d2-6a79ffa41855&format=json";
        apiDTO.Resource = "/Services/api/LO/GetDetails?objectId=243bae9c-dfa8-433f-b8d2-6a79ffa41855&format=json";

        var loApi = new LoApi(apiDTO, customCsodDTO);

        //  LOResponse loResponse = loApi.CreateMaterial(loItem);
        TrainingItem      loResponse = loApi.Get();
        EventTrainingItem e          = (EventTrainingItem)loResponse;
    }
    public static LOResponse UpdateLoItemSession()
    {
        ApiDTO        apiDTO;
        CustomCsodDTO customCsodDTO;

        ApiObjects(out apiDTO, out customCsodDTO);

        LOItem loItem = GetUpdatedLoItemSession();

        var loApi = new LoApi(apiDTO, customCsodDTO);

        apiDTO.Resource = "/Services/api/LO/Update?format=json";

        LOResponse loResponse = loApi.PerformOperation(loItem, OperationTypeEnum.UPDATE);

        return(loResponse);
    }