/// <summary> /// Returns a list of PaymentStatusVw objects /// </summary> /// <returns></returns> public ActionResult Index(PaymentStatusVwViewModel Model) { Db db = new Db(DbServices.ConnectionString); Model.List = PaymentStatusVwServices.List(db); return(View(Model)); }
private void FormPaymentStatusView_Load(object sender, EventArgs e) { if (dataSource == null) { DateTime dt = DateTime.Now; DataSource = PaymentStatusVwServices.List(new Db(DbServices.ConnectionString)); slblEllapsedTimeValue.Text = (DateTime.Now.Subtract(dt).TotalMilliseconds / 1000).ToString(); } }