public ActionResult Create(Study study)
        {
            if (ModelState.IsValid)
            {
                _study.StoreStudy(study);
                //db.Studies.Add(study);
                //db.SaveChanges();
                return RedirectToAction("Index");
            }

            return View(_study);
        }
        public void TestViewStudy()
        {
            // Arrange
               StudyController controller = new StudyController();
               Study study = new Study();
               study.StudyCreated = DateTime.Parse("2/2/2012");
               study.StudyManager = "Paula Dawson";
               study.StudyName = "New StudyName2";
                // Act
                ViewResult result = controller.Create(study) as ViewResult;

                // Assert
                Assert.IsNotNull(result);
        }
        public ActionResult Edit(Study study)
        {
            if (ModelState.IsValid)
            {
             //   db.Entry(study).State = EntityState.Modified;
               // db.SaveChanges();

                _study.UpdateStudy(study);
                return RedirectToAction("Index");
            }
            return View(_study);
        }