Пример #1
0
        public ActionResult <object> Get()
        {
            DALOps dal = new DALOps(connStr, database);

            #if DALChanges1
            var dotNetObj = dal.GetCollection(collection);
            #else
            var dotNetObj = dal.GetCollection(dal, collection);
            #endif

            return(dotNetObj);
        }
Пример #2
0
        public IActionResult Get()
        {
            DALOps dal       = new DALOps(connStr, database);
            var    dotNetObj = dal.GetCollection(dal, collection);

            return(Ok(dotNetObj));
        }