Beispiel #1
0
        public IHttpActionResult Get(int id)
        {
            var dto = _service.GetTechnology(id);

            if (dto != null)
            {
                dto.Url = Url.Link("GetTechnologyById", new { id = dto.Id });
                return(Ok(dto));
            }
            else
            {
                return(NotFound());
            }
        }