示例#1
0
 public ActionResult Create([Bind(Include = "Id,Name,Description,Status")] Task task)
 {
     if (ModelState.IsValid)
     {
         taskService.CreateNewTask(task);
         return(RedirectToAction("Index"));
     }
     return(View(task));
 }