private IEnumerable <VoucherViewModel> ConvertVoucherModelToViewModel(IEnumerable <VoucherDetail> detail)
 {
     return(detail.Select(m => new VoucherViewModel
     {
         AccountID = m.AccountID,
         AccountName = Convert.ToString(accountsmanager.GetAccountNameById(m.AccountID).AccountName),
         Credit = m.Amount > 0 ? Math.Round(Math.Abs(m.Amount)) :0,
         Debit = m.Amount < 0 ? Math.Round(Math.Abs(m.Amount)) : 0,
         WasSuccessful = true
     }));
 }