public IEnumerable <QuocGia> Get() { try { return(QuocGia.GetAll()); } catch { return(null); } }
public IEnumerable <QuocGia> Post([FromBody] int id) { try { var ds = QuocGia.GetAll(); List <QuocGia> lts = new List <QuocGia>(); lts.Add(ds.FirstOrDefault(p => p.idquocgia == id)); return(lts); } catch { return(null); } }