public ActionResult Create(TimeSheet timesheet)
        {
            if (ModelState.IsValid)
            {
                db.TimeSheets.Add(timesheet);
                db.SaveChanges();
                return RedirectToAction("Index");
            }

            ViewBag.ProjectId = new SelectList(db.Projects, "Id", "ReferenceNumber", timesheet.ProjectId);
            return View(timesheet);
        }
 public ActionResult Edit(TimeSheet timesheet)
 {
     if (ModelState.IsValid)
     {
         db.Entry(timesheet).State = EntityState.Modified;
         db.SaveChanges();
         return RedirectToAction("Index");
     }
     ViewBag.ProjectId = new SelectList(db.Projects, "Id", "ReferenceNumber", timesheet.ProjectId);
     return View(timesheet);
 }