/// <summary> /// Извличане на архив на ел. папка /// </summary> /// <param name="CaseId"></param> /// <returns></returns> public async Task <IActionResult> CaseArchive(int CaseId) { var caseCase = service.Case_GetById(CaseId); var nameDelo = "Дело_" + caseCase.RegNumber + "_" + caseCase.RegDate.Day.ToString("00") + "_" + caseCase.RegDate.Month.ToString("00") + "_" + caseCase.RegDate.Year.ToString("0000") + ".zip"; var caseArchive = await service.CaseArchive(CaseId); return(File(caseArchive, System.Net.Mime.MediaTypeNames.Application.Zip, nameDelo)); }