Example #1
0
        public List <UserListVM> GetUserListVM()
        {
            var userListVM = _context.Set <UserListVM>().FromSql("GetUsers")
                             .AsNoTracking()
                             .ToList();

            return(userListVM);
        }
Example #2
0
        public List <Account> GetAccounts()
        {
            var AccountList = context.Set <Account>().FromSql("GetAccounts")
                              .AsNoTracking()
                              .ToList();

            return(AccountList);
        }