public HttpResponseMessage GetPolicies([FromUri] string alias)
        {
            var policies = new MockAntiAffinityPolicyCollection
            {
                items = Users.ByAccountAlias[alias].AntiAffinityPolicies.Values.ToList()
            };

            return Request.CreateResponse(HttpStatusCode.OK, policies);
        }
Esempio n. 2
0
        public HttpResponseMessage GetPolicies([FromUri] string alias)
        {
            var policies = new MockAntiAffinityPolicyCollection
            {
                items = Users.ByAccountAlias[alias].AntiAffinityPolicies.Values.ToList()
            };

            return(Request.CreateResponse(HttpStatusCode.OK, policies));
        }