コード例 #1
0
        public async Task <String> PutPeople([FromBody] People people)
        {
            IStatefullPeopleApi iuser = ServiceProxy.Create <IStatefullPeopleApi>(new Uri(uriString: "fabric:/PeopleApp/PeopleApi"), new ServicePartitionKey(0));

            String response = await iuser.putPeopleAll(people.Guid, people.jsonData, people.tenantName, people.tenantId);

            return(response);
        }
コード例 #2
0
        public async Task <IActionResult> GetPeopleById(string id, string tenantName)
        {
            IStatefullPeopleApi iuser = ServiceProxy.Create <IStatefullPeopleApi>(new Uri(uriString: "fabric:/PeopleApp/PeopleApi"), new ServicePartitionKey(0));
            People people             = await iuser.getPeopleByID(id, tenantName);

            if (people == null)
            {
                return(NotFound());
            }
            else
            {
                return(new ObjectResult(people));
            }
        }