예제 #1
0
        public string Delete(string id)
        {
            var result = "false";

            if (objds.Remove(new ObjectId(id)) == "1")
            {
                result = "true";
            }
            return(result);
        }
예제 #2
0
        public IActionResult Delete(string id)
        {
            var Usuario = objds.GetUsuario(new ObjectId(id));

            if (Usuario == null)
            {
                return(NotFound());
            }

            objds.Remove(Usuario.Id);
            return(new OkResult());
        }