예제 #1
0
        public async Task <ActionResult <SessionResponse> > Post(Session input)
        {
            var session = await _sessionsRepository.AddAsync(input.MapSession());

            var result = session.MapSessionResponse();

            return(CreatedAtAction(nameof(Get), new { id = result.ID }, result));
        }