コード例 #1
0
 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));
     }
 }
コード例 #2
0
        public PartialViewResult _ExpenseUpdateModal(int ExpenseId)
        {
            Expenses model = ExpenseQueries.GetExpenseById(ExpenseId);

            return(PartialView(model));
        }