/// <summary> /// Get Expenses /// </summary> /// <returns></returns> // GET: api/Expense public IHttpActionResult Get(string filter) { ExpenseRepository ExpenseRepository = new ExpenseRepository(Convert.ToInt32(Request.Headers.GetValues("CurrentUserID").First())); List <Expense> ExpenseList = ExpenseRepository.GetExpensesByFilter(filter); return(Json(new { Expenses = ExpenseList })); }