예제 #1
0
        /// <summary>
        /// Returns a list of LoanStatusVw objects
        /// </summary>
        /// <returns></returns>
        public ActionResult Index(LoanStatusVwViewModel Model)
        {
            Db db = new Db(DbServices.ConnectionString);

            Model.List = LoanStatusVwServices.List(db);
            return(View(Model));
        }
예제 #2
0
 private void FormLoanStatusView_Load(object sender, EventArgs e)
 {
     if (dataSource == null)
     {
         DateTime dt = DateTime.Now;
         DataSource = LoanStatusVwServices.List(new Db(DbServices.ConnectionString));
         slblEllapsedTimeValue.Text = (DateTime.Now.Subtract(dt).TotalMilliseconds / 1000).ToString();
     }
 }