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)); } }
public void Add(Comment comment) { _commentDal.Insert(comment); }