Esempio n. 1
0
        public ActionResult <CommandReadDTO> GetCommandById(int id)
        {
            var commandItem = Repository.GetCommandBy(id);

            if (commandItem != null)
            {
                return(Ok(Mapper.Map <CommandReadDTO>(commandItem)));
            }
            else
            {
                return(NotFound());
            }
        }