예제 #1
0
        public int DeleteBlogDetail(DeleteBlog_Req _Req)
        {
            SqlParameter[] p = new SqlParameter[10];
            p[0] = new SqlParameter("@BlogId", _Req.BlogId);
            p[1] = new SqlParameter("@AuthorId", _Req.AuthorId);
            int res = SQLHelper.ExecuteNonquery(SQLHelper.conection, CommandType.StoredProcedure, "SP_DeleteBlog", p);

            return(res);
        }
예제 #2
0
        public IHttpActionResult DeleteBlogDetail(DeleteBlog_Req _Req)
        {
            var _response = _blogService.DeleteBlogDetail(_Req);

            return(Ok(_response));
        }
예제 #3
0
 int IBlogService.DeleteBlogDetail(DeleteBlog_Req _Req)
 {
     return(_blogData.DeleteBlogDetail(_Req));
 }