コード例 #1
0
        // GET api/values
        //public IEnumerable<string> Get()
        //{
        //    return new string[] { "value1", "value2" };
        //}

        // GET api/values/5
        public string Get(string ap)
        {
            var result = new Models.SecurityManager().CreateProcessAsUser(ap, true);
            return result;
        }
コード例 #2
0
 public UsuarioController()
 {
     this.repo = new Models.HotelEntities1();
     this.sm   = new Models.SecurityManager();
 }
コード例 #3
0
        // GET api/values
        //public IEnumerable<string> Get()
        //{
        //    return new string[] { "value1", "value2" };
        //}

        // GET api/values/5
        public string Get(string ap)
        {
            var result = new Models.SecurityManager().CreateProcessAsUser(ap, true);

            return(result);
        }