예제 #1
0
        public ActionResult <phones> Get(string id)
        {
            var phone = _phoneService.GetById(id);

            if (phone == null)
            {
                return(NotFound());
            }

            return(phone);
        }