public ActionResult Create(DailyReport dailyreport)
        {
            if (ModelState.IsValid)
            {
                db.DailyReports.Add(dailyreport);
                db.SaveChanges();
                return RedirectToAction("Index");
            }

            return View(dailyreport);
        }
 public ActionResult Edit(DailyReport dailyreport)
 {
     if (ModelState.IsValid)
     {
         db.Entry(dailyreport).State = EntityState.Modified;
         db.SaveChanges();
         return RedirectToAction("Index");
     }
     return View(dailyreport);
 }