コード例 #1
0
        /// <summary>
        /// GET Accounts
        /// </summary>
        /// <returns></returns>
        // GET: Accounts
        public ActionResult Index()
        {
            DAL_AccountEntity       objDAL      = new DAL_AccountEntity();
            List <AccountViewModel> accountinfo = objDAL.RetriveRecords();

            return(View(accountinfo));
        }
コード例 #2
0
        /// <summary>
        /// Get account details
        /// </summary>
        /// <param name="id"></param>
        /// <returns>Account details</returns>
        // GET: Account/Details
        public ActionResult Details(Guid id)
        {
            DAL_AccountEntity       objDAL      = new DAL_AccountEntity();
            List <AccountViewModel> accountinfo = objDAL.RetriveRecords();
            var account = accountinfo.Where(a => a.AccountId == id).FirstOrDefault();

            return(View(account));
        }