public IActionResult MoveItems(long id, [FromBody] List <long> moveIds) { return(new JsonResult(DocumentService.MoveItems(PwdManService, GetToken(), id, moveIds))); }
public IActionResult GetItems(long id) { return(new JsonResult(DocumentService.GetItems(PwdManService, GetToken(), id))); }
public IActionResult DeleteItems(long id, [FromBody] List <long> delIds) { return(new JsonResult(DocumentService.DeleteItems(PwdManService, GetToken(), id, delIds))); }
public IActionResult DownloadDocument(long id) { var result = DocumentService.DownloadDocument(PwdManService, GetToken(), id); return(File(result.Stream, result.ContentType, result.FileName)); }