コード例 #1
0
        [HttpGet] //gets all electoral rooms + candidates
        public IActionResult GetAll()
        {
            //var electoralRooms = Repository.GetAll();
            var electoralRooms = ElectionService.GetAllElectoralRooms();

            //var electoralRoomDtos = Mapper.Map<IList<ElectionView>>(electoralRoom);
            return(Ok(electoralRooms));
        }