public IResult Update(Comment entity) { //Check(entity); FluentValidationTool.Validate(new CommentValidator(), entity); commentDAL.Update(entity); return(new SuccessResult(ResultMessage <Comment> .Update(entity.CommentText))); }
public IActionResult Update(Comment entity) { Comment updated = _CommentDal.Update(entity); if (updated != null && updated.Id > 0) { return(Ok(updated)); } else { return(BadRequest("Güncelleme işlemi başarısız!")); } }
public void Update(Comment entity) { _dal.Update(entity); }
public bool Update(Comment model) { return(_commentDAL.Update(model) > 0); }
public bool Update(Comment entity) { return(_commentDAL.Update(entity) > 0); }
public void Update(Comment entity) { _commentDAL.Update(entity); }