示例#1
0
 public bool Insert(Comment model)
 {
     try
     {
         return(commentDal.Insert(model));
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
 public EntityResult Insert(Comment model)
 {
     try
     {
         if (_commentDal.Insert(model))
         {
             return(new EntityResult("Başarılı", ResultState.Success));
         }
         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(Comment comment)
 {
     _commentDal.Insert(comment);
 }