Пример #1
0
 public IActionResult MoveItems(long id, [FromBody] List <long> moveIds)
 {
     return(new JsonResult(DocumentService.MoveItems(PwdManService, GetToken(), id, moveIds)));
 }
Пример #2
0
 public IActionResult GetItems(long id)
 {
     return(new JsonResult(DocumentService.GetItems(PwdManService, GetToken(), id)));
 }
Пример #3
0
 public IActionResult DeleteItems(long id, [FromBody] List <long> delIds)
 {
     return(new JsonResult(DocumentService.DeleteItems(PwdManService, GetToken(), id, delIds)));
 }
Пример #4
0
        public IActionResult DownloadDocument(long id)
        {
            var result = DocumentService.DownloadDocument(PwdManService, GetToken(), id);

            return(File(result.Stream, result.ContentType, result.FileName));
        }