/// <summary> /// Returns a list of LoanDecisionTypeVw objects /// </summary> /// <returns></returns> public ActionResult Index(LoanDecisionTypeVwViewModel Model) { Db db = new Db(DbServices.ConnectionString); Model.List = LoanDecisionTypeVwServices.List(db); return(View(Model)); }
/// <summary> /// /// </summary> /// <param name="id"></param> /// <returns></returns> public ActionResult Details(Nullable <byte> id) { if (id == null) { return(new HttpStatusCodeResult(HttpStatusCode.BadRequest)); } LoanDecisionTypeVwViewModel loanDecisionTypeVwViewModel = new LoanDecisionTypeVwViewModel(); Db db = new Db(DbServices.ConnectionString); // loanDecisionTypeVwViewModel.Instance = LoanDecisionTypeVwServices.Get(id.Value, db); loanDecisionTypeVwViewModel.Instance = LoanDecisionTypeVwServices.GetChildren(id.Value, db); if (loanDecisionTypeVwViewModel.Instance == null) { return(HttpNotFound()); } return(View(loanDecisionTypeVwViewModel)); }