public ActionResult EditBook(int bookId)
        {
            var result = bookdataProvider.GetBookById(bookId);

            var authors = authorDataProvider.GetAllAuthor("", "", "").ToList();

            ViewBag.AuthorId = new SelectList(authors, "AuthorId", "Name", result.AuthorId); //დეფოულტ მნიშვნელობა არ ჯდება

            var conditions = adminDataProvider.GetAllCondition().ToList();

            ViewBag.ConditionId = new SelectList(conditions, "ConditionId", "Name", result.ConditionId); //დეფოულტ მნიშვნელობა არ ჯდება

            var genres = genreDataProvider.GetAllGenre("").ToList();

            ViewBag.GenreId = new SelectList(genres, "GenreId", "Name", result.GenreId); //დეფოულტ მნიშვნელობა არ ჯდება

            var dealTypes = adminDataProvider.GetAllDealType().ToList();

            ViewBag.DealTypeId = new SelectList(dealTypes, "DealTypeId", "Name", result.DealTypeId); //დეფოულტ მნიშვნელობა არ ჯდება

            var customBook = new CustomBook()
            {
                Name        = result.Name,
                AuthorId    = result.AuthorId,
                ConditionId = result.ConditionId,
                GenreId     = result.GenreId,
                DealTypeId  = result.DealTypeId,
                IsActive    = result.IsActive,
                UserId      = result.UserId,
                Price       = result.Price
            };

            return(View(customBook));
        }
 public ActionResult BookDetails(int bookId)
 {
     return(View(bookDataProvider.GetBookById(bookId)));
 }