Advertisement
Mihailo21

teatrservis

Dec 18th, 2023
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 1.04 KB | None | 0 0
  1. using ODP_NET_Theatre.DAO;
  2. using ODP_NET_Theatre.DAO.Impl;
  3. using ODP_NET_Theatre.Model;
  4. using System;
  5. using System.Collections.Generic;
  6. using System.Linq;
  7. using System.Text;
  8. using System.Threading.Tasks;
  9.  
  10. namespace ODP_NET_Theatre.Service
  11. {
  12.  
  13.     public class TheatreService
  14.     {
  15.         private static readonly ITheatreDAO theatreDAO = new TheatreDAOImpl();
  16.  
  17.         public List<Theatre> FindAll()
  18.         {
  19.             return theatreDAO.FindAll().ToList();
  20.         }
  21.  
  22.         public Theatre FindById(int id)
  23.         {
  24.             return theatreDAO.FindById(id);
  25.         }
  26.  
  27.         public int Save(Theatre p)
  28.         {
  29.             return theatreDAO.Save(p);
  30.         }
  31.  
  32.         public bool ExistsById(int id)
  33.         {
  34.             return theatreDAO.ExistsById(id);
  35.         }
  36.  
  37.         public int DeleteById(int id)
  38.         {
  39.             return theatreDAO.DeleteById(id);
  40.         }
  41.         public int SaveAll(List<Theatre> pozoristeList)
  42.         {
  43.             return theatreDAO.SaveAll(pozoristeList);
  44.         }
  45.     }
  46. }
  47.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement