public DTO GetSpeeds() { cstDAO service = new cstDAO(); List <string> response = new List <string>(); response = service.GetSpeeds(); dto = new DTO(0, "", response); return(dto); }
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); }