public JsonResult GetLinks() { var links = _linkRepository.GetAllLinks(); var temp = JsonConvert.SerializeObject(links); return(Json(temp, JsonRequestBehavior.AllowGet)); }