コード例 #1
0
        public HttpResponseMessage Search(string query = "")
        {
            HttpResponseMessage response = null;

            try
            {
                response = Request.CreateResponse(HttpStatusCode.OK, diagnosisService.SearchByNameOrCode(query));
            }
            catch (Exception ex)
            {
                response = Request.CreateResponse(HttpStatusCode.InternalServerError, ex.Message);
            }
            return(response);
        }