예제 #1
0
        public async Task <IActionResult> PutMembers([FromBody] Member model)
        {
            try
            {
                var members = repo.PutMember(model);
                await hub.Clients.All.SendAsync("updateMember", members);

                return(StatusCode(StatusCodes.Status200OK, members));
            }
            catch (Exception ex)
            {
                return(StatusCode(StatusCodes.Status400BadRequest, ex.Message));
            }
        }