public async Task <dynamic> Get(string id) { if (_cloudantService == null) { return(new string[] { "No database connection" }); } else { return(await _cloudantService.GetByIdAsync(id)); } }
public async Task <dynamic> GetByID(string id) { if (_cloudantService == null) { return(new string[] { "No database connection" }); } else { return(await _cloudantService.GetByIdAsync(id, DBNames.loginusers.ToString())); } }
public async Task <dynamic> GetByID(string id) { if (_cloudantService == null) { return(new string[] { "No database connection" }); } else { var response = await _cloudantService.GetByIdAsync(id, DBNames.transaction.ToString()); return(JsonConvert.DeserializeObject <Transaction>(response)); } }