예제 #1
0
        public ActionResult <IEnumerable <CommandReadDTO> > GetAll()
        {
            var commandItems = _repository.GetAllAsync();

            return(Ok(_mapper.Map <IEnumerable <CommandReadDTO> >(commandItems)));
        }