I need to get the selected dropdown value from partial view and included in the CategoryID in the Book class...

```
[Authorize]
    public PartialViewResult GetAllCategory()
    {
        ProcessSVC.Category newCategory = new ProcessSVC.Category();
        newCategory.ChildCategories = obj1.GetAllCategories(String.Empty);
        return PartialView(newCategory);
    }

```

GetAllCategory.cshtml (PartialView)

```
@model MvcAdminTemplate.ProcessSVC.Category
@Html.DropDownListFor(m => m.ParentID, new SelectList(Model.ChildCategories, "ID", "DisplayName"), new { @class = "form-control" })

```

Create View:

```
[Authorize]
    [HttpPost]
    public ActionResult Create()
    {
        MvcAdminTemplate.ProcessSVC.Book oBook = new ProcessSVC.Book();
        return View(oBook);
    }

```

Create.cshtml

```
@model MvcAdminTemplate.ProcessSVC.Book
@{
   ViewBag.Title = "Create";
 }
@Html.Partial("_LeftMenu")
<!-- content -->

<h2>Create</h2>
<div class="col-md-10">

 @using (Html.BeginForm("Create", "Books", FormMethod.Post, new { enctype = "multipart/form-data" }))
 {
     <div class="row"> 
         <div class="bootstrap-admin-no-table-panel-content bootstrap-admin-panel-content collapse in">
            <form class="form-horizontal">
                <fieldset>
                    <legend>Add Book</legend>
                    <div class="form-group">
                        <div class="col-lg-2">
                            @Html.LabelFor(m => m.BookName, new { @class = "control-label" })
                        </div>
                        <div class="col-lg-10">
                            @Html.TextBoxFor(m => m.BookName, new { @class = "form-control", type = "text" })
                            <p class="help-block"> </p>
                        </div>
                    </div>
                    <div class="form-group">
                        <div class="col-lg-2">
                            @Html.LabelFor(m => m.Description, new { @class = " control-label" })
                        </div>
                        <div class="col-lg-10">
                            @Html.TextBoxFor(m => m.Description, new { @class = "form-control ", type = "text" })
                            <p class="help-block"> </p>
                        </div>
                    </div>
                    <div class="form-group divCategory">
                        <div class="col-lg-2">
                            @Html.Label("Parent Category", new { @class = " control-label" })
                        </div>
                        <div class="col-lg-10">
                            @Html.HiddenFor(m => m.BookId, new { @class = "hdn-id" })

                            @Html.Action("GetAllCategory","Books")

                            <span class="help-block"> </span>
                        </div>
                        <button type="submit" class="btn btn-primary">Save changes</button>
                        <button type="reset" class="btn btn-default">Cancel</button>
                    </div>
                </fieldset>
            </form>
        </div>
    </div>
}

```

After submission of the above form i need to get Book attributes and Category "Selected Category".

```
[Authorize]
[HttpPost]
    public ActionResult Create(ProcessSVC.Book oBook)
    { 
        oBook.LanguageID = 1;
        _service.AddBooks(oBook.ActualPrice,oBook.ActualPriceString, oBook.Author, oBook.BookId, oBook.BookName, oBook.CategoryID, oBook.Currency, oBook.CurrentPrice, oBook.CurrentPriceString,
                             oBook.Description, oBook.DiscountPercentage, oBook.DiscountValue, oBook.LanguageID,
                             oBook.NativeLanguageName, oBook.Publisher);

        TempData.Add("SuccessMessage", " New book " + oBook.BookName + " Added !");
        return RedirectToAction("Index");
    }

```

Please suggest me.