예제 #1
0
 public ActionResult GetExpenses(string userName)
 {
     if (ModelState.IsValid)
     {
         var results = ExpenseManager.GetExpenseItems(userName);
         return(Json(results, JsonRequestBehavior.AllowGet));
     }
     else
     {
         return(new HttpStatusCodeResult(HttpStatusCode.NotFound));
     };
 }