public ActionResult ProcedureClosure(int id, int conflictId) { var conflict = BLLConflicts.GetConflictForArbitration(conflictId); var debate = BLLDebates.GetDebate(id); var file = DocGenerator.GenerateOrdonnanceProcedure(conflict, debate); var azureFile = AzureFileHelper.AddFile(conflictId, file.FileStream, file.FileName); return(View("ProcedureClosure", new ProcedureClosureModel() { Conflict = conflict, Debat = debate, DocumentUrl = azureFile.Uri.AbsoluteUri })); }