public ActionResult getUserTreaty(int id) { return(new JsonnResult { Data = new { success = true, data = enregRepository.GetUserTreaty(id) } }); }