Пример #1
0
 public BorcluFirma Get(int id)
 {
     using (BorcluFirmaContext context = new BorcluFirmaContext())
     {
         return(context.BorcluFirma.SingleOrDefault(p => p.Id == id));
     }
 }
Пример #2
0
 public List <BorcluFirma> GetAll()
 {
     using (BorcluFirmaContext context = new BorcluFirmaContext())
     {
         return(context.BorcluFirma.ToList());
     }
 }
Пример #3
0
 public void Add(BorcluFirma borcluFirma)
 {
     using (BorcluFirmaContext context = new BorcluFirmaContext())
     {
         context.BorcluFirma.Add(borcluFirma);
         context.SaveChanges();
     }
 }
Пример #4
0
 public void Update(BorcluFirma borcluFirma)
 {
     using (BorcluFirmaContext context = new BorcluFirmaContext())
     {
     }
 }