public ActionResult GetDoors() { List <SelectListItem> items = new List <SelectListItem>(); foreach (var model in Enum.GetValues(typeof(Doors))) { var name = Doors.GetName(typeof(Doors), model); items.Add(new SelectListItem() { Text = name, Value = ((int)model).ToString() }); } return(Json(items, JsonRequestBehavior.AllowGet)); }