示例#1
0
        public HttpResponseMessage GetSifranti(string id)
        {
            CRUDService         service = new CRUDService();
            HttpResponseMessage response;

            try
            {
                List <DSifranti> dto = service.GetDSifranti(id);
                response = Request.CreateResponse(HttpStatusCode.OK, dto);
            }
            catch (ApplicationException ex)
            {
                response = Request.CreateResponse(HttpStatusCode.InternalServerError, ex);
            }


            return(response);
        }