public async Task <dynamic> Delete(string id, string rev)
 {
     if (_cloudantService != null)
     {
         return(await _cloudantService.DeleteAsync(id, rev, DBNames.loginusers.ToString()));
     }
     else
     {
         return(new string[] { "No database connection" });
     }
 }
        public async Task <dynamic> Delete(string id, string rev)
        {
            if (_cloudantService != null)
            {
                return(await _cloudantService.DeleteAsync(id, rev));

                //Console.WriteLine("Update RESULT " + response);
                //return new string[] { employee.IBMEmailID, employee._id, employee._rev };
                //return JsonConvert.DeserializeObject<UpdateEmployeeResponse>(response.Result);
            }
            else
            {
                return(new string[] { "No database connection" });
            }
        }
Esempio n. 3
0
 public async Task <dynamic> Delete(ToDoItem item)
 {
     return(await _cloudantService.DeleteAsync(item));
 }
 public async Task <dynamic> Delete(Schedule item)
 {
     return(await _cloudantService.DeleteAsync(item));
 }