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); }
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)); } }