public bool RelateEvidence(string amendmentId, string evidenceFolder) { var amendment = GetAmendment(amendmentId); _cache.Remove(string.Format(GetAmendmentKeyFormat, CheckingWindow, amendment.Urn)); return(_amendmentService.RelateEvidence(amendmentId, evidenceFolder)); }
public IActionResult RelateEvidence( [FromBody][SwaggerRequestBody("Amendment to add to CRM", Required = true)] string amendmentId, string evidenceFolderName, [FromRoute] [SwaggerParameter("The checking window to request amendments from", Required = false)] CheckingWindow checkingWindow) { _amendmentService.RelateEvidence(amendmentId, evidenceFolderName, true); var response = new GetResponse <bool> { Result = true, Error = new Error() }; return(Ok(response)); }