public String GetCategoryName(int CategoryId) { CategoryExpenseClient ac = new CategoryExpenseClient(); CategoryExpense category = ac.Find(CategoryId); return(category.Name); }
public ActionResult Edit(int id) { CategoryExpenseClient client = new CategoryExpenseClient(); CategoryExpenseViewModel CEVM = new CategoryExpenseViewModel(); CEVM.CategoryExpense = client.Find(id); return(View("Edit", CEVM.CategoryExpense)); }