I want to take the value from the editor and pass it to the model to be added into the data base but i dont know how to implement the part with the value go from the editor to the model here is the place im so far
CSHTML
Controller
Model Method
CSHTML
@using ( Html.BeginForm("Admin", "Account") ){ @Html.ValidationSummary(true) <fieldset> <legend><b>Създаване на нова новина</b></legend> <h1>Title</h1> @*Render the editor for the title*@ @(Html.Kendo().EditorFor(m => m.title).Name("Title").Value("Заглавието на новината")) <h1>NewsText</h1> @*Render the editor for the text*@ @(Html.Kendo().EditorFor(m => m.text).Name("Text").Value("Текста на новината")) <input type="button" value="Submit" /> </fieldset>} [Authorize] [HttpGet] public ActionResult Admin() { return View(); } [HttpPost] public ActionResult Admin(string Title, string Text) { NewsDal.setNews(Title, Text); return Redirect("/Home/News"); }public static void setNews(string Title, string Text) { InfoEntities db = new InfoEntities(); db.AddToNews(new News() { title = Title, text = Text, }); db.SaveChanges(); }