public HttpResponseMessage GetCardList(string key, string cardgroups, string customergroupid, string accesslevelids) { var customergroups = GetListChild("", customergroupid); var list = _tblCardService.GetAllByFirstForUpload(key, "", cardgroups, customergroups, "", "", accesslevelids); var content = new StringContent(JsonConvert.SerializeObject(list), Encoding.UTF8, "application/json"); return(new HttpResponseMessage() { StatusCode = HttpStatusCode.OK, Content = content, RequestMessage = Request }); }