public async Task GetUserId(HttpContext context) { var client = (string)context.GetRouteValue("client"); var userId = await chatFacade.GetUserId(client); var jsonDoc = JsonConvert.SerializeObject(userId); await context.RespondStringAsync(jsonDoc); }
public async Task GetUserId(HttpContext context) { var client = (string)context.GetRouteValue("client"); var userId = await chatFacade.GetUserId(client); var jsonDoc = JsonConvert.SerializeObject(userId); await context.RespondStringAsync(jsonDoc); }