Esempio n. 1
0
        // GET api/users
        public ReturnValue Get()
        {
            ObjectParameter totalCount = new ObjectParameter("TotalCount", typeof(int));

            ReturnValue returnValue = new ReturnValue();

            try
            {
                returnValue.value = entity.UserGetList(totalCount).ToList <UserGetList_Result>();
                returnValue.code  = 0;
                returnValue.msg   = "succes";
            }
            catch
            {
                throw new HttpResponseException(HttpStatusCode.InternalServerError);
            }

            return(returnValue);
        }