/// <summary>
        ///
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        public ActionResult Details(Nullable <int> id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            InstallmentDecreaseOrderVwViewModel installmentDecreaseOrderVwViewModel = new InstallmentDecreaseOrderVwViewModel();

            Db db = new Db(DbServices.ConnectionString);

            // installmentDecreaseOrderVwViewModel.Instance = InstallmentDecreaseOrderVwServices.Get(id.Value, db);
            installmentDecreaseOrderVwViewModel.Instance = InstallmentDecreaseOrderVwServices.GetChildren(id.Value, db);
            if (installmentDecreaseOrderVwViewModel.Instance == null)
            {
                return(HttpNotFound());
            }


            @ViewBag.InstallmentDecreaseVwTitle = ResourceServices.GetString(Cf.Data.Resources.ResourceBase.Culture, "InstallmentDecrease", "ModuleNamePlural");
            // installmentDecreaseOrderVwViewModel.InstallmentDecreaseVwViewModel.List = InstallmentDecreaseVwServices.GetByInstallmentDecreaseOrderId(id.Value, db);
            installmentDecreaseOrderVwViewModel.InstallmentDecreaseVwViewModel.List = installmentDecreaseOrderVwViewModel.Instance.InstallmentDecreaseVwList;


            return(View(installmentDecreaseOrderVwViewModel));
        }
 private void FormInstallmentDecreaseOrderView_Load(object sender, EventArgs e)
 {
     if (dataSource == null)
     {
         DateTime dt = DateTime.Now;
         DataSource = InstallmentDecreaseOrderVwServices.List(new Db(DbServices.ConnectionString));
         slblEllapsedTimeValue.Text = (DateTime.Now.Subtract(dt).TotalMilliseconds / 1000).ToString();
     }
 }
 /// <summary>
 /// Returns a list of InstallmentDecreaseOrderVw objects
 /// </summary>
 /// <returns></returns>
 public ActionResult Index(InstallmentDecreaseOrderVwViewModel Model)
 {
     if (Model.Filter.HasCriteria)
     {
         Db db = new Db(DbServices.ConnectionString);
         Model.List = InstallmentDecreaseOrderVwServices.Get(Model.Filter, db);
     }
     else
     {
         Model.List = new List <InstallmentDecreaseOrderVw>();
     }
     return(View(Model));
 }