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)); }
public async Task <IActionResult> Get(int id) { DiffResponse diff = await _service.GetDiffAsync(id); if (diff == null) { return(NotFound()); } return(Ok(diff)); }