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