public ActionResult <object> Delete(string param)
        {
            DALOps dal = new DALOps(connStr, database);

#if DALChanges1
            var dotNetObj = dal.DeleteCollection(collection, "citizenid", param);
#else
            var dotNetObj = dal.DeleteCollection(dal, collection, "citizenid", param);
#endif
            return(dotNetObj);
        }
Example #2
0
        //[Route("api/[controller]/Delete")]
        public IActionResult Delete(string param)
        {
            DALOps dal       = new DALOps(connStr, database);
            var    dotNetObj = dal.DeleteCollection(dal, collection, "personid", param);

            return(Ok(dotNetObj));
        }