public HttpResponseMessage GetCustomerById(int customerId)
 {
     try
     {
         var customer = _repository.GetCustomerById(customerId);
         return(Request.CreateResponse <Customer>(HttpStatusCode.OK, customer));
     }
     catch (Exception ex)
     {
         return(Request.CreateResponse(HttpStatusCode.NotFound, ex));
     }
 }