public ActionResult Edit(TimeSlot timeslot)
 {
     if (ModelState.IsValid)
     {
         db.Entry(timeslot).State = EntityState.Modified;
         db.SaveChanges();
         return RedirectToAction("Index");
     }
     return View(timeslot);
 }
 public ActionResult Create(TimeSlot timeslot)
 {
     if (ModelState.IsValid)
     {
         db.TimeSlots.Add(timeslot);
         db.SaveChanges();
         return RedirectToAction("Details", "Stall", new {id = timeslot.StallId});
     }
     return View();
 }