Ejemplo n.º 1
0
        public IActionResult GetListOnType(string type)
        {
            var model = serviceAInstance.GetListFromType(type);

            if (model == null)
            {
                return(NotFound());
            }
            return(new ObjectResult(model));
        }
Ejemplo n.º 2
0
        public IActionResult Get(string type)
        {
            var modelsA = serviceAInstance.GetListFromType(type);

            if (modelsA == null)
            {
                return(NotFound());
            }
            serviceBInstance.AddFromList(modelsA);
            return(new OkResult());
        }
Ejemplo n.º 3
0
        public IEnumerable <Model> GetListOnType(string type)
        {
            var models = service.GetListFromType(type);

            return(models);
        }