public IActionResult AddBook([FromForm] AdminAddBookViewModel model)
        {
            string image = "";

            if (!ModelState.IsValid)
            {
                return(BadRequest());
            }
            using (var memoryStream = new MemoryStream())
            {
                model.Image.CopyTo(memoryStream);

                image = Convert.ToBase64String(memoryStream.ToArray());
            }

            adminService.AddBook(model.Title, model.Author, model.CategoryType, model.DiscountValue, image, model.ISBN, model.Price);
            return(Redirect(Url.Action("Index", "Admin")));
        }