// GET api/factor/5
        public Factor Get(int id)
        {
            var data = facService.SearchId(id);

            if (data.Count > 0)
            {
                return(data.ElementAt(0));
            }
            return(null);
        }
Example #2
0
        // GET api/factor/5
        public Factor[] Get(int id)
        {
            var data = facService.SearchId(id);

            if (data.Count > 0)
            {
                return(data.ToArray());
            }
            return(null);
        }