public JsonResult <JsonResponse <Cliente> > Inativar(int id, int status) { try { busines.Inativar(id, status); return(Json(new JsonResponse <Cliente> { Type = "success", Title = "Cliente!", Message = "Sucesso ao " + (status == 0 ? "Ativar" : "Inativar") + " o cliente!" })); } catch (Exception ex) { return(Json(new JsonResponse <Cliente> { Type = "error", Title = "Cliente!", Message = ex.Message })); } }