// GET: AvailableMoney public ActionResult Index() { bool[] list = new bool[2]; list[0] = AvailableMoneyQueries.CheckExistAvailableMoney(UserQueries.GetCurrentUsername()); list[1] = UserQueries.IsCompleteInitialized(UserQueries.GetCurrentUsername()); return(View(list)); }
public ActionResult _AvailableMoneyForm(AvailableMoneyCreateViewModel model) { if (ModelState.IsValid) { int result = AvailableMoneyQueries.CreateAvailableMoney(model, UserQueries.GetCurrentUsername()); if (result > 0) { return(Content("success")); } else { return(Content("failed")); } } else { return(PartialView(model)); } }
public ActionResult _AvailableMoneySummary() { AvailableMoneySummaryViewModel model = AvailableMoneyQueries.GetInitializedAvailableMoneySummary(UserQueries.GetCurrentUsername()); return(PartialView(model)); }
public ActionResult CheckExistAvailableMoney() { bool result = AvailableMoneyQueries.CheckExistAvailableMoney(UserQueries.GetCurrentUsername()); return(Content(result.ToString())); }