This commit is contained in:
Hamid Reza Mohammadi 2023-09-06 12:08:09 +03:30
parent 1f20c2bf1a
commit 621bc118cb
4 changed files with 4 additions and 6 deletions

View File

@ -271,9 +271,7 @@ namespace RMuseum.Controllers
[ProducesResponseType((int)HttpStatusCode.BadRequest, Type = typeof(string))]
public IActionResult StartImportingKnownSourceAsync([FromBody]string srcUrl)
{
var res = _pdfService.StartImportingKnownSourceAsync(srcUrl);
if (!string.IsNullOrEmpty(res.ExceptionString))
return BadRequest(res.ExceptionString);
_pdfService.StartImportingKnownSourceAsync(srcUrl);
return Ok();
}

View File

@ -18611,7 +18611,7 @@
<param name="srcUrl"></param>
<returns></returns>
</member>
<member name="M:RMuseum.Services.Implementation.PDFLibraryService.StartImportingKnownSourceAsync(RMuseum.DbContext.RMuseumDbContext,System.String)">
<member name="M:RMuseum.Services.Implementation.PDFLibraryService.ImportfFromKnownSourceAsync(RMuseum.DbContext.RMuseumDbContext,System.String)">
<summary>
import from known sources
</summary>

View File

@ -19,7 +19,7 @@ namespace RMuseum.Services
/// </summary>
/// <param name="srcUrl"></param>
/// <returns></returns>
RServiceResult<bool> StartImportingKnownSourceAsync(string srcUrl);
void StartImportingKnownSourceAsync(string srcUrl);
/// <summary>
/// get pdf book by id
/// </summary>

View File

@ -31,7 +31,7 @@ namespace RMuseum.Services.Implementation
/// </summary>
/// <param name="srcUrl"></param>
/// <returns></returns>
public RServiceResult<bool> StartImportingKnownSourceAsync(string srcUrl)
public void StartImportingKnownSourceAsync(string srcUrl)
{
_backgroundTaskQueue.QueueBackgroundWorkItem
(