private Edit ( [ Include = "ID,Name,PhoneNumber,Time,Timezone")]Appointmentappointment ) : System.Web.Mvc.ActionResult | ||
Include | [ | |
return | System.Web.Mvc.ActionResult |
public ActionResult Edit([Bind(Include = "ID,Name,PhoneNumber,Time,Timezone")] Appointment appointment)
{
if (ModelState.IsValid)
{
_repository.Update(appointment);
return RedirectToAction("Details", new { id = appointment.Id });
}
return View(appointment);
}
AppointmentsController::Edit ( int id ) : System.Web.Mvc.ActionResult |