public TaggedTextArray getClinicsByName(string name)
{
TaggedTextArray result = new TaggedTextArray();
if (!mySession.ConnectionSet.IsAuthorized)
{
result.fault = new FaultTO("Connections not ready for operation", "Need to login?");
}
else if (String.IsNullOrEmpty(name))
{
result.fault = new FaultTO("Empty clinic name");
}
if (result.fault != null)
{
return result;
}
try
{
OrderedDictionary d = HospitalLocation.getClinicsByName(mySession.ConnectionSet.BaseConnection, name);
result = new TaggedTextArray(d);
}
catch (Exception e)
{
result.fault = new FaultTO(e);
}
return result;
}