예제 #1
0
        public ActionResult <VolunteerReadDto> GetVolunteersById(int id)
        {
            var volunteersList = _volunteers.GetVolunteersById(id);

            if (volunteersList != null)
            {
                return(Ok(_mapper.Map <AdminReadDto>(volunteersList)));
            }
            return(NotFound());
        }