private void ThrowWebFaultOnRepositoryException(Exception e)
 {
     var errorData = new ErrorData("Repository error", e.Message);
     throw new WebFaultException<ErrorData>(errorData, HttpStatusCode.InternalServerError);
 }
 private void ThrowWebFault(string message, HttpStatusCode statusCode)
 {
     var errorData = new ErrorData("Exception", message);
     throw new WebFaultException<ErrorData>(errorData, statusCode);
 }