public IActionResult Remove(int id) { bool result = _CommentDal.Delete(id); if (result) { return(Ok("Silme işlemi başarılı!")); } else { return(BadRequest("Güncelleme işlemi başarısız!")); } }
public void Delete(Comment entity) { _dal.Delete(entity); }
public bool Delete(Comment model) { return(_commentDAL.Delete(model) > 0); }
public bool Delete(int entityID) { Comment comment = _commentDAL.Get(a => a.CommentID == entityID); return(_commentDAL.Delete(comment) > 0); }
public void Delete(Comment entity) { _commentDAL.Delete(entity); }