Beispiel #1
0
        public ActionResult GetProgressBySourceHash(string sourceHash)
        {
            FileContainer fileContainer = ProgressManager.GetFileContainerBySourceHash(sourceHash);

            if (fileContainer == null)
            {
                fileContainer = ProgressManager.GetFileContainerByChildHash(sourceHash);
                if (fileContainer == null)
                {
                    return(BadRequest(new { errorMessage = "hash not exist" }));
                }
            }

            return(GetResult(fileContainer));
        }