public async Task <IActionResult> Delete(string id) { Console.Write("hi"); var result = await _adapter.DeleteUserAsync("PromoDatabase", "ProductPromo", id); return(Ok(result)); }
public async Task <IActionResult> Delete(string id) { ResponseObject responseobject = new ResponseObject(); try { var result = await _adapter.DeleteUserAsync("PromoDatabase", "PromoCollection", id); responseobject.correlationalId = Guid.NewGuid().ToString(); responseobject.statusCode = 202; responseobject.statusReason = "Accepted"; responseobject.success = true; return(Ok(responseobject)); } catch (Exception ex) { responseobject.correlationalId = Guid.NewGuid().ToString(); responseobject.statusCode = 500; responseobject.statusReason = "Internal Server Error"; responseobject.success = false; return(StatusCode(StatusCodes.Status500InternalServerError, responseobject)); } }
public async Task <IActionResult> Delete(string id) { var result = await _adapter.DeleteUserAsync("PromoDatabase", "PromoCollection", id); return(Ok("deleted")); }
public async Task <IActionResult> Delete(string id) { var result = await _adapter.DeleteUserAsync("test-db", "test-collection", id); return(Ok(result)); }