/// <summary>
        /// Returns a list of ProfitStrategyVw objects
        /// </summary>
        /// <returns></returns>
        public ActionResult Index(ProfitStrategyVwViewModel Model)
        {
            Db db = new Db(DbServices.ConnectionString);

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