Exemplo n.º 1
0
        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);
        }
Exemplo n.º 2
0
 public ActionResult Delete(DeleteConceptViewModel model)
 {
     this.conceptLogic.Delete(model.Id);
     return this.RedirectToAction("Index", "Concepts");
 }