Beispiel #1
0
 internal List <Painting> GetAllPaintingsByPainter(Painter painter)
 {
     return(_context.Painting.Where(x => x.Painter.Id == painter.Id).ToList());
 }
Beispiel #2
0
 internal void Update(Painter painter)
 {
     _context.Update(painter);
     _context.SaveChanges();
 }
Beispiel #3
0
 internal void DeletePainter(Painter painter)
 {
     _context.Painter.Remove(painter);
     _context.SaveChanges();
 }
Beispiel #4
0
 internal void AddPainter(Painter painter)
 {
     _context.Add(painter);
     _context.SaveChanges();
 }