public ActionResult Create([Bind(Include="ID,Name,PhoneNumber,Time,Timezone")]Appointment appointment)
{
appointment.CreatedAt = DateTime.Now;
if (ModelState.IsValid)
{
_repository.Create(appointment);
return RedirectToAction("Details", new {id = appointment.Id});
}
return View("Create", appointment);
}