Example #1
0
    /// <summary>
    /// CreateCase.  This interface function Creates new Case using container id
    ///
    ///	Arguments:
    ///		containerid: The container id
    ///	Exceptions:
    ///		none
    ///	Return:
    ///		Caseid
    /// </summary>
    public string CreateCase(string containerid)
    {
        string caseid = null;

        try
        {
            //m_XRayHost = GetXrayHost();
            caseid = _cargoHostEndPoint.CreateInitAreaCase();
            //caseid = m_XRayHost.makeCase(containerid);
            XCase currentCase = _cargoHostEndPoint.GetCase(caseid);
            currentCase.setContainerId(containerid);
        }
        catch (Exception e1)
        {
            _logger.LogError("OM - " + e1.Message);
        }

        return(caseid);
    }