Example #1
0
 //[ValidateAntiForgeryToken]
 public ActionResult DeleteConfirmed(int?IdEmpresa)
 {
     try
     {
         EmpresaService.ExcluirEmpresa(IdEmpresa.Value);
         return(Json(new { success = true, title = "Sucesso", message = "Empresa excluĂ­da com sucesso !" }, JsonRequestBehavior.AllowGet));
     }
     catch (Exception ex)
     {
         return(Json(new { success = false, title = "Erro", message = ex.Message }, JsonRequestBehavior.AllowGet));
     }
 }