public void EditCommentOfMeeting(CommentOfMeeting commentOfMeeting)
 {
     using (IBusinessProvider provider = base.CreateBusinessProvider())
     using (ICommentOfMeetingBusinessProvider prov = provider.CreateCommentOfMeetingBusinessProvider())
         prov.EditCommentOfMeeting(commentOfMeeting);
 }
        public ActionResult AddCommentOfMeeting(CommentOfMeeting commentOfMeeting)
        {
            if (commentOfMeeting.PETianoId == 0)
                commentOfMeeting.PETianoId = LoggedPETiano.GetLogedPETiano().Id;

            _CommentOfMeetingService.CreateCommentOfMeeting(commentOfMeeting);

            return RedirectToAction("Index");
        }
        public ActionResult RemoveCommentOfMeeting(CommentOfMeeting commentOfMeeting)
        {
            commentOfMeeting = _CommentOfMeetingService.GetCommentOfMeeting(new CommentOfMeetingFilter() { Id = commentOfMeeting.Id});
            _CommentOfMeetingService.DeleteCommentOfMeeting(commentOfMeeting);

            return RedirectToAction("Index");
        }
 public void EditCommentOfMeeting(CommentOfMeeting commentOfMeeting)
 {
     using (IDataProvider provider = base.CreateDataProvider())
     using (ICommentOfMeetingRepository repository = provider.CreateCommentOfMeetingRepository())
         repository.Update(commentOfMeeting);
 }