public IActionResult DeleteUploadedFile(Guid ResourceId, string FilePath) { try { var fullPhysicalFilePath = Path.Combine(documentRoot, FilePath); _fileService.DeleteFileFromDirectory(fullPhysicalFilePath); _contractRefactorService.DeleteContractFileById(ResourceId); return(Ok(true)); } catch (Exception ex) { return(BadRequestFormatter.BadRequest(this, ex)); } }