예제 #1
0
        public async Task <IActionResult> UserPurses()
        {
            var model         = new UserPurseViewModel();
            var PursesDBOList = await _PursesRepository.DisplayAllPurses();

            model.UserPurses = PursesDBOList
                               .Select(PursesDBO => new UserPurseNameandID()
            {
                PurseName = PursesDBO.PurseName, ID = PursesDBO.ProductId, Description = PursesDBO.Description
            })
                               .ToList();

            return(View(model));
        }