public ActionResult GenerateBook(GenerateBookVM model) { if (ModelState.IsValid) { var bookModel = new BookModel(); var time = bookModel.ListOfBookObject(model.TotalNoOfBooks); ViewBag.StartTime = time.startTime; ViewBag.EndTime = time.endTime; ViewBag.Duration = time.finalCount.ToString(); ViewBag.RootBookList = time.rootBooks; } return(View()); }
public ActionResult GenerateBook() { var model = new GenerateBookVM(); return(View(model)); }