Exemple #1
0
 // 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));
 }
Exemple #2
0
 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));
     }
 }
Exemple #3
0
        public ActionResult _AvailableMoneySummary()
        {
            AvailableMoneySummaryViewModel model = AvailableMoneyQueries.GetInitializedAvailableMoneySummary(UserQueries.GetCurrentUsername());

            return(PartialView(model));
        }
Exemple #4
0
        public ActionResult CheckExistAvailableMoney()
        {
            bool result = AvailableMoneyQueries.CheckExistAvailableMoney(UserQueries.GetCurrentUsername());

            return(Content(result.ToString()));
        }