findAll method
Implementation
http.Response findAll(int userId) {
List<Complaint>? complaints = _complaintService?.findAll(userId);
return http.Response(jsonEncode(complaints), HttpStatus.ok);
}
http.Response findAll(int userId) {
List<Complaint>? complaints = _complaintService?.findAll(userId);
return http.Response(jsonEncode(complaints), HttpStatus.ok);
}