Exemple #1
0
        public DTO GetSpeeds()
        {
            cstDAO        service  = new cstDAO();
            List <string> response = new List <string>();

            response = service.GetSpeeds();
            dto      = new DTO(0, "", response);
            return(dto);
        }
Exemple #2
0
        public string PostSpeed(RequestInput json)
        {
            json.data = json.data.Replace('\'', '\"');
            json.data = json.data.Replace("None", "\"None\"");
            string response;
            cstDAO service = new cstDAO();

            if (service.CreateRow(json.data))
            {
                response = "OK";
            }
            else
            {
                response = "FAIL";
            }
            return(response);
        }