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

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