示例#1
0
 public QUOTE Get(int id)
 {
     using (QuotesDetailsEntities entities = new QuotesDetailsEntities())
     {
         return(entities.QUOTES.FirstOrDefault(e => e.Id == id));
     }
 }
示例#2
0
 public IEnumerable <QUOTE> Get()
 {
     using (QuotesDetailsEntities entities = new QuotesDetailsEntities())
     {
         return(entities.QUOTES.ToList());
     }
 }