public static RequestModel ConvertXmlToRequestModel(this RequestToXmlModel xmlModel) { var requestModel = new RequestModel(); requestModel.Amount = xmlModel.Body.Amount; requestModel.MessageID = xmlModel.Body.MessageID; requestModel.PhoneNumber = xmlModel.Body.PhoneNumber; return(requestModel); }