public string convertTime(string aTime) { if (!Utilities.IsValidTime(aTime)) { throw new Exception(incorectMessage); } solution = new BerlinClockConverter(aTime); string result = solution.GetBerlinTimeFormat(); return(result); }
public string ConvertTime(string aTime) { IBerlinClockConverter berlinClockConverter = new BerlinClockConverter(aTime); return(berlinClockConverter.ConvertTime()); }