Ejemplo n.º 1
0
        public IHttpActionResult GetTerminalGeoLocations(string serialNo)
        {
            if (serialNo == null)
            {
                return(Unauthorized());
            }

            serialNo = serialNo.Trim().ToLower();

            Terminals terminal = TerminalServices.GetTerminalBySerial(serialNo);

            if (terminal == null)
            {
                return(Unauthorized());
            }

            var locations = TerminalServices.GetTerminalGeoLocations(terminal.TerminalId);

            return(Ok(locations));
        }