// GET api/installusers/5 public ReturnValue Get(int id) { IMFREEEntities entity = new IMFREEEntities(); ReturnValue returnValue = new ReturnValue(); returnValue.code = 0; returnValue.msg = "succes"; try { ObjectParameter TotalCount = new ObjectParameter("TotalCount", typeof(int)); returnValue.totalcount = (int)TotalCount.Value; returnValue.value = entity.InstallUserGetList(id, TotalCount).ToList <InstallUserGetList_Result>(); } catch { throw new HttpResponseException(HttpStatusCode.InternalServerError); } return(returnValue); }