예제 #1
0
        public void Add([FromBody] UserConnection conn)
        {
            var temp = _service.Get(conn.UserName);

            if (temp == null)
            {
                conn.Id = new Guid();
                _service.Add(conn);
            }
            else
            {
                temp.ConnectionId = conn.ConnectionId;
                _service.Update(temp);
            }
        }