示例#1
0
        public HttpResponseMessage GetCompany(long companyId)
        {
            var company = _logic.ReadCompany(companyId);

            if (company == null)
            {
                return(Request.CreateResponse(HttpStatusCode.NotFound));
            }
            return(Request.CreateResponse(HttpStatusCode.OK, company));
        }