Ejemplo n.º 1
0
        /// <summary>
        /// Returns a list of InsuranceTypeVw objects
        /// </summary>
        /// <returns></returns>
        public ActionResult Index(InsuranceTypeVwViewModel Model)
        {
            Db db = new Db(DbServices.ConnectionString);

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