Exemple #1
0
 public void Add(Il model)
 {
     using (IlRepository ilRepo = new IlRepository())
     {
         try
         {
             ilRepo.Add(model);
         }
         catch
         {
             throw;
         }
     }
 }
Exemple #2
0
 public List <IlDTO> Get()
 {
     using (IlRepository ilRepo = new IlRepository())
     {
         try
         {
             var model = ilRepo.Get(x => x.Hastane, x => x.KullaniciBilgileri).ToList();
             return(ilmapper.MapAll(model));
         }
         catch
         {
             throw;
         }
     }
 }
Exemple #3
0
 public IlDTO GetById(int id)
 {
     using (IlRepository ilRepo = new IlRepository())
     {
         try
         {
             var model = ilRepo.GetById(x => x.ilID == id, x => x.Hastane, x => x.KullaniciBilgileri);
             return(ilmapper.Map(model));
         }
         catch
         {
             throw;
         }
     }
 }
 public IlService()
 {
     _ilRepository = new IlRepository();
 }
Exemple #5
0
 public IlController(IlRepository _ilrep)
 {
     ilRep = _ilrep;
 }