public string GetPoint(string key) { var values = key.Split('|'); if (values.Length > 0) { PointService.Provider provider = new PointService.Provider(); string method = values[0].ToLower(); if (method == "rp") { string data = values[1]; return provider.RetrievePoints(data).ToString(); } } return "Error, Not Found!"; }
public string GetPoint(string key) { var values = key.Split('|'); if (values.Length > 0) { PointService.Provider provider = new PointService.Provider(); string method = values[0].ToLower(); if (method == "rp") { string data = values[1]; return(provider.RetrievePoints(data).ToString()); } } return("Error, Not Found!"); }