public JsonResult addLast(int id) { NotificationComponent NC = new NotificationComponent(); var list = NC.getUltimaNotificacao(id); return(new JsonResult { Data = list, JsonRequestBehavior = JsonRequestBehavior.AllowGet }); }