public ActionResult Raw(string name, string path)
        {
            using (var git = new GitService(GitService.GetDirectoryInfo(name).FullName))
            {
                var model = git.GetBlob(path);
                if (model == null)
                    throw new HttpException((int)HttpStatusCode.NotFound, string.Empty);

                return model.BlobType == BlobType.Binary
                    ? new RawResult(model.RawData, FileHelper.BinaryMimeType, model.Name)
                    : new RawResult(model.RawData);
            }
        }
 public ActionResult Blob(string name, string path)
 {
     using (var git = new GitService(GitService.GetDirectoryInfo(name).FullName))
     {
         var model = git.GetBlob(path);
         if (model == null)
             throw new HttpException((int)HttpStatusCode.NotFound, string.Empty);
         model.RepositoryName = name;
         return View(model);
     }
 }