Esempio n. 1
0
        public ActionResult <ItemDTO_Return> GetSingleItem(int id)
        {
            var result = _itemService.GetSingleItem(id);

            if (result == null)
            {
                return(BadRequest("Item Was not Found"));
            }
            else
            {
                return(_itemMapper.CreateitemDTOReturnFromitem(result));
            }
        }