public PartialViewResult _ExpenseInitializeForm(int?id, int type) { if (id > 0) { Expenses model = ExpenseQueries.GetExpenseById(id.Value); return(PartialView(model)); } else { Expenses model = new Expenses { Id = 0, ExpenseType = type }; return(PartialView(model)); } }
public PartialViewResult _ExpenseUpdateModal(int ExpenseId) { Expenses model = ExpenseQueries.GetExpenseById(ExpenseId); return(PartialView(model)); }