Ejemplo n.º 1
0
 public bool Add(MesajDetay entity)
 {
     if (entity != null)
     {
         try
         {
             _mesajDetayRepo.Add(entity);
             return(true);
         }
         catch
         {
             throw new Exception("Beklenmedik bir hata oluştu.");
         }
     }
     else
     {
         throw new Exception("Boş mesaj eklenemez.");
     }
 }
Ejemplo n.º 2
0
 public void Insert(MesajDetay entity)
 {
     _mesajDetayDAL.Add(entity);
 }