Beispiel #1
0
        public ActionResult Download(int?id)
        {
            var centreId      = UserCentreId;
            var expense       = NidanBusinessService.RetrieveExpense(UserOrganisationId, centreId, id.Value, e => true);
            var data          = NidanBusinessService.CreateExpenseBytes(UserOrganisationId, centreId, expense);
            var voucherNumber = expense.VoucherNumber;

            return(File(data, ".pdf", string.Format("{0} Other Fee.pdf", voucherNumber)));
        }