Example #1
0
        internal static Title GetSignalLocationAndDateRange(string signalID, DateTime startDate, DateTime endDate)
        {
            string title = signalsRepository.GetSignalLocation(signalID);

            title += " - SIG#" + signalID + " \n" + startDate.ToString("f") + " - " + endDate.ToString("f");
            return(new Title(title));
        }
Example #2
0
        public string GetSignalLocation()
        {
            MOE.Common.Models.Repositories.ISignalsRepository signalRepository =
                MOE.Common.Models.Repositories.SignalsRepositoryFactory.Create();

            return(signalRepository.GetSignalLocation(SignalID));
        }
Example #3
0
        private string GetSignalLcation(string SignalID)
        {
            MOE.Common.Models.Repositories.ISignalsRepository sr = MOE.Common.Models.Repositories.SignalsRepositoryFactory.Create();

            string location = sr.GetSignalLocation(SignalID);

            return(location);
        }
Example #4
0
        public ActionResult GetSignalLocation(string signalID)
        {
            MOE.Common.Models.Repositories.ISignalsRepository repository =
                MOE.Common.Models.Repositories.SignalsRepositoryFactory.Create();
            string signalLocation = repository.GetSignalLocation(signalID);

            if (signalLocation == string.Empty)
            {
                signalLocation = "Signal Not Found";
            }
            return(Content(signalLocation));
        }