public OperationResult<DeleteConceptViewModel> GetDeleteViewModel(long id) { var title = this.conceptsService.GetConceptTitle(id); var confirmation = "--- delete concept? ---"; var result = new DeleteConceptViewModel { Title = title, Confirmation = confirmation, Id = id }; return new OperationResult<DeleteConceptViewModel>(result); }
public ActionResult Delete(DeleteConceptViewModel model) { this.conceptLogic.Delete(model.Id); return this.RedirectToAction("Index", "Concepts"); }