@model CoWorking

@{
    ViewData["Title"] = "Create";
}

<h2>Create</h2>

<form asp-action="Create">
    <div class="form-horizontal">
        <h4>CoWorking</h4>
        <hr />
        <div asp-validation-summary="ModelOnly" class="text-danger"></div>
        <div class="form-group">
            <label asp-for="PerformerId" class="col-md-2 control-label"></label>
            <div class="col-md-10">
                <select asp-for="PerformerId" class ="form-control" asp-items=@ViewBag.PerformerId></select>
            </div>
        </div>
        <div class="form-group">
            <label asp-for="WorkingForId" class="col-md-2 control-label"></label>
            <div class="col-md-10">
                <select asp-for="WorkingForId" class ="form-control" asp-items=@ViewBag.WorkingForId></select>
            </div>
        </div>
        <div class="form-group">
            <div class="col-md-offset-2 col-md-10">
                <input type="submit" value="Create" class="btn btn-default" />
            </div>
        </div>
    </div>
</form>

<div>
    <a asp-action="Index">Back to List</a>
</div>

@section Scripts {
    <script src="~/lib/jquery/dist/jquery.min.js"></script>
    <script src="~/lib/jquery-validation/dist/jquery.validate.min.js"></script>
    <script src="~/lib/jquery-validation-unobtrusive/jquery.validate.unobtrusive.min.js"></script>
}
