예제 #1
0
 public bool Insert(Blog model)
 {
     try
     {
         return(blogDal.Insert(model));
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
예제 #2
0
 public EntityResult Insert(Blog model)
 {
     try
     {
         if (_blogDal.Insert(model))
         {
             return(new EntityResult("Başarılı", ResultState.Success));
         }
         else
         {
             return(new EntityResult("Hata Oluştu", ResultState.Warning));
         }
     }
     catch (Exception ex)
     {
         return(new EntityResult("Database Hatası " + ex.ToInnestException().Message, ResultState.Error));
     }
 }
예제 #3
0
 public void Add(Blog blog)
 {
     _blogDal.Insert(blog);
 }