public HttpResponseMessage GetProductMaster() { try { var product = _productService.GetProductMaster(); return(Request.CreateResponse(HttpStatusCode.OK, product)); } catch (Exception ex) { throw new ApiDataException(1000, "Role Not Found", HttpStatusCode.NotFound); } }