Many changes :
* JsonReaderError.aspx: display a nice json conversion error * CalendarEntryList.cs: new Google data for the calendar entries * JsonReaderError.cs: Json error model * README.md: Documentation url * NpgsqlBlogProvider.cs: Update the blog post title * BlogsController.cs: - Updating the blog post title - bug fix rendering the avatar * FrontOfficeController.cs: - the client cannot modify its estimation * GoogleController.cs: - implementing the calendar entries retrieval * HomeController.cs: - the home start page from configuration parameter named "StartPage" * Global.asax.cs: - back to a clean global.asax * style.css: showing the main area with a background transparent color * Post.aspx: Bug fix: the message was displayed two times (we keep the one from app.master) * UserPost.aspx: the blog title comes from the poster profile found in ViewData * DateQuery.aspx: implementing the date query * Web.config: the start page now comes from Web.config * Web.csproj: the Sql db creation script should not be deployed, neither as package.config * BlogManager.cs: updating the blog post title * BlogProvider.cs: yavscModel/Blogs/BlogManager.cs * YavscModel.csproj: new cs files to compile * App.master: returning from the Google login
This commit is contained in:
@ -68,15 +68,19 @@ namespace Npgsql.Web.Blog
|
||||
}
|
||||
return cmts.ToArray();
|
||||
}
|
||||
public override void UpdatePost (long postid, string content, bool visible)
|
||||
public override void UpdatePost (long postid, string title, string content, bool visible)
|
||||
{
|
||||
using (NpgsqlConnection cnx = new NpgsqlConnection(connectionString))
|
||||
using (NpgsqlCommand cmd = cnx.CreateCommand()) {
|
||||
DateTime now = DateTime.Now;
|
||||
cmd.CommandText =
|
||||
"update blog set modified=@now, bcontent=@content, " +
|
||||
"visible = @visible where _id = @id";
|
||||
"update blog set modified=@now," +
|
||||
" title = @title," +
|
||||
" bcontent=@content, " +
|
||||
" visible = @visible " +
|
||||
"where _id = @id";
|
||||
cmd.Parameters.Add ("@now", now);
|
||||
cmd.Parameters.Add ("@title", title);
|
||||
cmd.Parameters.Add ("@content", content);
|
||||
cmd.Parameters.Add ("@visible", visible);
|
||||
cmd.Parameters.Add ("@id", postid);
|
||||
|
Reference in New Issue
Block a user