public ApiResponse BookAppointment(long bookingSlotId, DateTime bookingDate, string mobile, string name, string address, string contactNo, string petName) { return(_dal.BookAppointment(bookingSlotId, bookingDate, mobile, name, address, contactNo, petName)); }
public ActionResult BookAppointment_Post(FormCollection collection) { Appointment appointment = new Appointment(); appointment.Pusername = TempData["username"].ToString(); TempData.Keep(); appointment.Dfirstname = TempData["drfirstname"].ToString(); TempData.Keep(); appointment.Dlastname = TempData["drlastname"].ToString(); TempData.Keep(); TryUpdateModel(appointment); if (ModelState.IsValid) { appointment.Dinfoid = 0; appointment.Pinfoid = 0; appointment.Status = 0; AppointmentDAL.BookAppointment(appointment); return(RedirectToAction("Index")); } else { return(View()); } }