public JsonResult UploadFile(String Idtask) { try { var Filepath = _Env.WebRootPath; var outs = ""; if (Idtask != null) { outs = _taskCampaignBusiness.PrintFile(Guid.Parse(Idtask), Filepath, ApplicationUserCurrent.AccountId); } return(Json(outs)); } catch (Exception ex) { _logger.LogError(new EventId(0, "Error Index"), ex.Message); return(Json("")); } }