コード例 #1
0
        public async Task <IActionResult> GetAsync(Guid id)
        {
            await Task.Yield();

            var session = await sessionLogic.GetAsync(id).ConfigureAwait(false);

            if (session == null)
            {
                return(BadRequest("Login error: Incorrect email or password"));
            }
            else
            {
                return(Ok(new SessionDTO(session)));
            }
        }