/// <summary> /// /// </summary> /// <param name="id"></param> /// <returns></returns> public ActionResult Details(Nullable <int> id) { if (id == null) { return(new HttpStatusCodeResult(HttpStatusCode.BadRequest)); } HealthLoanDecisionVwViewModel healthLoanDecisionVwViewModel = new HealthLoanDecisionVwViewModel(); Db db = new Db(DbServices.ConnectionString); // healthLoanDecisionVwViewModel.Instance = HealthLoanDecisionVwServices.Get(id.Value, db); healthLoanDecisionVwViewModel.Instance = HealthLoanDecisionVwServices.GetChildren(id.Value, db); if (healthLoanDecisionVwViewModel.Instance == null) { return(HttpNotFound()); } @ViewBag.HealthLoanDecisionFirstPaymentVwTitle = ResourceServices.GetString(Cf.Data.Resources.ResourceBase.Culture, "HealthLoanDecisionFirstPayment", "ModuleNamePlural"); // healthLoanDecisionVwViewModel.HealthLoanDecisionFirstPaymentVwViewModel.List = HealthLoanDecisionFirstPaymentVwServices.GetByHealthLoanDecisionId(id.Value, db); healthLoanDecisionVwViewModel.HealthLoanDecisionFirstPaymentVwViewModel.List = healthLoanDecisionVwViewModel.Instance.HealthLoanDecisionFirstPaymentVwList; return(View(healthLoanDecisionVwViewModel)); }
private void FormHealthLoanDecisionView_Load(object sender, EventArgs e) { if (dataSource == null) { DateTime dt = DateTime.Now; DataSource = HealthLoanDecisionVwServices.List(new Db(DbServices.ConnectionString)); slblEllapsedTimeValue.Text = (DateTime.Now.Subtract(dt).TotalMilliseconds / 1000).ToString(); } }
/// <summary> /// Returns a list of HealthLoanDecisionVw objects /// </summary> /// <returns></returns> public ActionResult Index(HealthLoanDecisionVwViewModel Model) { if (Model.Filter.HasCriteria) { Db db = new Db(DbServices.ConnectionString); Model.List = HealthLoanDecisionVwServices.Get(Model.Filter, db); } else { Model.List = new List <HealthLoanDecisionVw>(); } return(View(Model)); }