public string Delete(string id) { var result = "false"; if (objds.Remove(new ObjectId(id)) == "1") { result = "true"; } return(result); }
public IActionResult Delete(string id) { var Usuario = objds.GetUsuario(new ObjectId(id)); if (Usuario == null) { return(NotFound()); } objds.Remove(Usuario.Id); return(new OkResult()); }