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

            Db db = new Db(DbServices.ConnectionString);

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


            @ViewBag.GrantPaymentVwTitle = ResourceServices.GetString(Cf.Data.Resources.ResourceBase.Culture, "GrantPayment", "ModuleNamePlural");
            // grantPaymentOrderVwViewModel.GrantPaymentVwViewModel.List = GrantPaymentVwServices.GetByGrantPaymentOrderId(id.Value, db);
            grantPaymentOrderVwViewModel.GrantPaymentVwViewModel.List = grantPaymentOrderVwViewModel.Instance.GrantPaymentVwList;


            return(View(grantPaymentOrderVwViewModel));
        }
 /// <summary>
 /// Returns a list of GrantPaymentOrderVw objects
 /// </summary>
 /// <returns></returns>
 public ActionResult Index(GrantPaymentOrderVwViewModel Model)
 {
     if (Model.Filter.HasCriteria)
     {
         Db db = new Db(DbServices.ConnectionString);
         Model.List = GrantPaymentOrderVwServices.Get(Model.Filter, db);
     }
     else
     {
         Model.List = new List <GrantPaymentOrderVw>();
     }
     return(View(Model));
 }