Example #1
0
 public List <SpendingVM> BL_GetIncomesList(int p_UserId)
 {
     SpendingVMList = new List <SpendingVM>();
     foreach (usp_GetIncomesList_Result Income in DALObj.DAL_GetIncomesList(p_UserId).Data)
     {
         SpendingVM SpendingVMObj = new SpendingVM
         {
             Id           = Income.IncomeId,
             CategoryId   = Income.CategoryId,
             CategoryName = Income.CategoryName,
             Amount       = Income.Amount,
             CreatedDate  = Income.CreatedDate.ToString("dd/MMM/yyyy"),
             Note         = Income.Note
         };
         SpendingVMList.Add(SpendingVMObj);
     }
     return(SpendingVMList);
 }