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

            pairs.Add("citizenid", citizen_id);
#if DALChanges1
            var dotNetObj = dal.GetCollectionWithParams(collection, pairs);
#else
            var dotNetObj = dal.GetCollectionWithParams(dal, collection, pairs);
#endif
            return(dotNetObj);
        }
Пример #2
0
        public IActionResult GetOne(string personid)
        {
            DALOps dal = new DALOps(connStr, database);
            Dictionary <object, object> pairs = new Dictionary <object, object>();

            pairs.Add("personid", personid);
            var dotNetObj = dal.GetCollectionWithParams(dal, collection, pairs);

            return(Ok(dotNetObj));
        }