public JsonResult <DiffResultDto> GetDiffResult(string id)
        {
            DiffResult diffedFiles = _diffService.GetStoredDiffResult(id);

            if (diffedFiles != null)
            {
                return(Json(new DiffResultDto(diffedFiles)));
            }

            diffedFiles = _diffService.CompareLeftAndRightFiles(id);
            _diffService.StoreDiffResult(id, diffedFiles);
            return(Json(new DiffResultDto(diffedFiles)));
        }
Exemple #2
0
 private void WhenComparingData()
 {
     _diffResult = _diffService.CompareLeftAndRightFiles(_key);
 }