コード例 #1
0
        //
        // GET: /AccountType/

        public ActionResult Index()
        {
            var accountTypeRepository = new AccountTypeRepository()
            {
                UnitOfWork = SessionState.Current.UnitOfWork
            };

            return(View(accountTypeRepository.Items()));
        }
コード例 #2
0
 // GET api/AccountTypeAPI
 public IEnumerable <AccountType> GetAccountTypes()
 {
     return(db.Items());
 }