コード例 #1
0
 public ActionResult Edit(int id, DateTime monday, int mealTypeId, FormCollection collection)
 {
     try
     {
         int    programID   = int.Parse(collection["ProgramId"]);
         string description = collection["Description"];
         int    number      = mealDAO.Edit(id, description);
         return(RedirectToAction("MealPlanForProgram", new { programId = programID, monday = monday }));
     }
     catch
     {
         return(View("Error"));
     }
 }