Example #1
0
        public async Task <IHttpActionResult> GetDiffAsync(int diffId)
        {
            if (!await _retrieveService.LeftFileExistsAsync(diffId) || !await _retrieveService.RightFileExistsAsync(diffId))
            {
                return(NotFound());
            }

            var diffResult = await _diffService.GetDiffAsync(diffId);

            return(Ok(diffResult));
        }
Example #2
0
        public async Task <IActionResult> Get(int id)
        {
            DiffResponse diff = await _service.GetDiffAsync(id);

            if (diff == null)
            {
                return(NotFound());
            }

            return(Ok(diff));
        }