コード例 #1
0
    public static List <Activity> Get_Activities(string organizationId, string areaId, string projectId, string filter)
    {
        List <Activity> theList = new List <Activity>();

        if (string.IsNullOrEmpty(areaId))
        {
            areaId = "0";
        }
        if (string.IsNullOrEmpty(projectId))
        {
            projectId = "0";
        }
        if (!string.IsNullOrEmpty(organizationId))
        {
            try
            {
                theList = ActivityBLL.GetActivitiesForAutocomplete(Convert.ToInt32(organizationId), Convert.ToInt32(areaId), Convert.ToInt32(projectId), filter);
            }
            catch (Exception exc)
            {
                log.Error("Error in GetActivitiesForAutocomplete to filter: " + filter + ", organizationId: " + organizationId + ", areaId: " + areaId + " and projectId:" + projectId, exc);
            }
        }
        return(theList);
    }