Esempio n. 1
0
        public IActionResult Get(string id)
        {
            var model = serviceAInstance.GetModel(new ObjectId(id));

            if (model == null)
            {
                return(NotFound());
            }
            return(new ObjectResult(model));
        }
        public Model Get(string id)
        {
            var model = service.GetModel(new ObjectId(id));

            return(model);
        }