コード例 #1
0
        public async Task <ActionResult <Election> > GetElection(string id)
        {
            var election = await _electionService.GetElection(id);

            if (election == null)
            {
                return(NotFound());
            }

            return(Ok(election));
        }