Beispiel #1
0
        public IHttpActionResult Get()
        {
            List <UserDO> users = null;

            try
            {
                users = userTask.GetUsers();
            }
            catch (Exception e)
            {
                throw new Exception(e.Message);
            }

            return(Json(users));
        }