|
|
@ -101,14 +101,18 @@ class MessageComposeViewController: UIViewController { |
|
|
|
let controlNo = self.controlNO ?? "" |
|
|
|
let transactionId = self.transactionId ?? "" |
|
|
|
|
|
|
|
if let type = self.type { |
|
|
|
switch type { |
|
|
|
case .cancel: |
|
|
|
self.presenter?.cancel(control: controlNo, transId: transactionId, subject: subject, body: body) |
|
|
|
case .edit: |
|
|
|
self.presenter?.edit(control: controlNo, transId: transactionId, subject: subject, body: body) |
|
|
|
if body.isEmpty || body == "" || body == "Your request here" { |
|
|
|
self.alert(message: "Remarks is required") |
|
|
|
} else { |
|
|
|
if let type = self.type { |
|
|
|
switch type { |
|
|
|
case .cancel: |
|
|
|
self.presenter?.cancel(control: controlNo, transId: transactionId, subject: subject, body: body) |
|
|
|
case .edit: |
|
|
|
self.presenter?.edit(control: controlNo, transId: transactionId, subject: subject, body: body) |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|