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