public LineControlResponse GetLineControl(LineControl lc, string token) { log.Debug("GetLineControl: " + lc.ToString()); LineControl newlc = null; if (ValidateToken(token, lc.directoryNumber)) { log.Debug("Token is valid...Retreive line control (" + lc.directoryNumber + ") from LineControlService"); try { newlc = LineControlService.GetLineControl(lc); } catch (Exception e) { log.Error("Unable to retreive lineControl from LineControlService: " + e.Message); } } return(new LineControlResponse(newlc, AuthenticationService.UpdateToken(token))); }
public LineStatus[] GetLinesStatus(LineStatus[] lines) { log.Debug("GetLinesStatus..."); return(LineControlService.GetLinesStatus(lines)); }