示例#1
0
 public List <SpendingVM> BL_GetExpenseList(int p_UserId)
 {
     SpendingVMList = new List <SpendingVM>();
     foreach (usp_GetExpenseList_Result Expense in DALObj.DAL_GetExpenseList(p_UserId).Data)
     {
         SpendingVM SpendingVMObj = new SpendingVM
         {
             Id           = Expense.ExpenseId,
             CategoryId   = Expense.CategoryId,
             CategoryName = Expense.CategoryName,
             Amount       = Expense.Amount,
             CreatedDate  = Expense.CreatedDate.ToString("dd/MMM/yyyy"),
             Note         = Expense.Note
         };
         SpendingVMList.Add(SpendingVMObj);
     }
     return(SpendingVMList);
 }