Beispiel #1
0
        public ActionResult Finalize(int id)
        {
            PostService.ChangeStatus(id, PostStatus.Finalized);
            UnitOfWork.Commit();

            return(Ok());
        }
        public ActionResult Disapprove(int id)
        {
            if (!PostsRepository.Exists(id))
            {
                return(NotFound(id));
            }

            PostService.ChangeStatus(id, PostStatus.Disapproved);
            UnitOfWork.Commit();

            return(Ok());
        }