// POST api/searchandreplace public string Post(string fileId, [FromBody] SearchAndReplaceModel value) { var service = new DocumentEditingTestService(fileId); string count = service.SearchAndReplace(value.SearchStatement, value.ReplaceStatement).ToString(); //DocumentService.DoConvert(fileId); return(count); }
// GET api/convert/5 public string Get(string fileId, string ext) { var service = new DocumentEditingTestService(fileId); return(service.GetDownloadLink(ext)); }