public ActionResult UpdateTitle(int id) { ManiTitleViewModel model = new ManiTitleViewModel() { Title = _titleManager.GetTitle(id), ButtonName = "Update Title", }; return(View(model)); }
private void buttonUpdateTitle_Click(object sender, EventArgs e) { Title title = _titleManager.GetTitle(_idTitle); title.TitleName = textEditTitleName.Text; title.Description = textEditTitleDescription.Text; _titleManager.UpdateTitle(title); MessageBox.Show("Title guncellendi"); ListMyTitles(); ClearTitleTexts(); FillTitleComboBoxes(); }