public virtual ActionResult Delete(decimal id) { if (BLAdminBase <ET> .Delete(id)) { this.AddToastMessage("Sucesso", "Deletado com sucesso.", ToastrType.Success); } else { this.AddToastMessage("Erro", "Erro ao deletar.", ToastrType.Error); } return(RedirectToAction("Index")); }
public virtual ActionResult Item(VM model) { if (ModelState.IsValid) { if (BLAdminBase <ET> .Save(HelpersMethods.CopyValues <VM, ET>(model))) { this.AddToastMessage("Sucesso", "Salvo com sucesso.", ToastrType.Success); } else { this.AddToastMessage("Erro", "Erro ao salvar.", ToastrType.Error); } } return(RedirectToAction("Index")); }
public override ActionResult Item(decimal?id) { ViewBag.Contents = BLAdminBase <ETContent> .GetList(); return(base.Item(id)); }
public virtual ActionResult Index() { ViewBag.List = BLAdminBase <ET> .GetList(); return(View()); }