@if (!string.IsNullOrEmpty(Model.ErrorMessage))
{
@Html.Raw(Model.ErrorMessage)
}
@if (!string.IsNullOrEmpty(Model.SuccessMessage))
{
@Html.Raw(Model.SuccessMessage)
}
@using (Html.BeginForm(null, null, FormMethod.Post, new { action = $"{GlobalConfiguration.BasePath}{Context.Request.Path}" }))
{
@Html.HiddenFor(x => x.Id)
@Html.LabelFor(x => x.Name)
@Html.TextBoxFor(x => x.Name, new { style = "width:50%" })
@Html.ValidationMessageFor(m => m.Name)
@Html.LabelFor(x => x.Description)
@Html.TextBoxFor(x => x.Description, new { style = "width:90%" })
@Html.ValidationMessageFor(m => m.Description)
@Html.LabelFor(x => x.Body)
@Html.ValidationMessageFor(m => m.Body)
}