Exemplo n.º 1
0
        public HttpResponseMessage GetCompany(int id)
        {
            Company company = _companyManagement.GetCompany(id);

            if (company != null)
            {
                return(Request.CreateResponse(HttpStatusCode.OK, company));
            }
            else
            {
                return(Request.CreateResponse(HttpStatusCode.BadRequest));
            }
        }
Exemplo n.º 2
0
 public HttpResponseMessage GetCompany(int id)
 {
     return(Request.CreateResponse(HttpStatusCode.OK, _companyManagement.GetCompany(id)));
 }