public ActionResult Create(LexileTitle lexiletitle)
        {
            if (ModelState.IsValid)
            {
                db.LexileTitles.Add(lexiletitle);
                db.SaveChanges();
                return RedirectToAction("Index");
            }

            return View(lexiletitle);
        }
        //////////////////////////////////////////////////////////////////////////////
        public static LexileDto lexDto(LexileTitle lex)
        {
            LexileDto lexileDto = new LexileDto();

            lexileDto.Title = lex.Title;
            lexileDto.Author = lex.Author;
            lexileDto.Isbn = lex.Isbn;
            lexileDto.Isbn13 = lex.Isbn13;
            lexileDto.LexScore = short.Parse(lex.Lexile);
            lexileDto.PageCount = (short?)lex.Pages;
            lexileDto.LexUpdate = (DateTime)lex.LastUpdated;

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