simple ajax controller (for countries etc)
(these are research notes)
consuming WebApi with MVC
consuming WebApi with MVC
the following contains xml entries to get past razor runtime compilation errors of namespace not found:
@Html.LabelFor(model => model.path.Value, "Path")
@Html.DropDownList("Path", new List
{
new SelectListItem { Text = TypeSafeEnum.a.Value, Value = TypeSafeEnum.a.Value },
new SelectListItem { Text = TypeSafeEnum.b.Value, Value = TypeSafeEnum.b.Value },
new SelectListItem { Text = TypeSafeEnum.c.Value, Value = TypeSafeEnum.c.Value },
})
@Html.ValidationMessageFor(model => model.path.Value)