Beispiel #1
0
 public function delete(DeleteRequest $request, $blogId)
 {
     if ($deleted = BlogModel::deleteBlog($request->input(), $blogId)) {
         $message = $this->getMessage('success', [$deleted]);
     } else {
         $message = $this->getMessage('error', [Request::ERROR_DATABASE_BLOG_NOT_FOUND]);
     }
     return json_encode($message);
 }