a note on billls,

+refactoring

* instdbws.sql:
* BlogsController.cs:
* NpgsqlBlogProvider.cs: Implements the note

* robots.txt:
* Web.config:
* Web.csproj:
* Catalog.xml:
* Global.asax.cs:
* pgsql.xcf:
* p8-av4.png:
* pgsql.jpeg:
* logoDev.png:
* logoDev.xcf:
* debian-pb.gif:
* apache_pb.gif:
* theme.css:
* style.css:
* apache_pby.gif:
* apache_pbw.gif:
* Book.aspx:
* jquery-ui.css:
* Login.aspx:
* debian-powered.png:
* BlogManager.cs:
* FhHRx.gif:
* pgsql.png:
* TagControl.ascx:
* jquery-ui.min.css:
* BlogProvider.cs:
* theme.css:
* p8-av4.s.jpg:
* test-domain-TestAPI.config:
* noavatar.png:
* p8-av4.xxs.jpg:
* apache_pbw.png:
* debian-logo.png:
* TestCatalogInit.cs:
* Mono-powered.png:
* helix-nebula-1400x1400.l.jpg:
* star-939235_1280.jpg:
* animated-overlay.gif:
* star-939235_1280.s.jpg:
* sign-in-with-google.png:
* star-939235_1280.xxs.jpg:
* sign-in-with-google-s.png:
* helix-nebula-1400x1400.jpg:
* helix-nebula-1400x1400.s.jpg:
* helix-nebula-1400x1400.xxs.jpg: removes the /images folder from the app root folder,
  all images are moved to /App_Themes/images
This commit is contained in:
Paul Schneider 2015-11-04 11:04:22 +01:00
commit 7bf9b6a771
53 changed files with 217 additions and 103 deletions

View file

@ -140,7 +140,23 @@ namespace Yavsc.ApiControllers
}
}
/// <summary>
/// Create the specified blog entry.
/// </summary>
/// <param name="bp">Bp.</param>
[Authorize, HttpPost]
public long Create (BasePost bp)
{
return BlogManager.Post (User.Identity.Name, bp.Title, "", bp.Visible, null);
}
[Authorize, HttpPost]
public void Note (long id, int note)
{
if (note < 0 || note > 100)
throw new ArgumentException ("0<=note<=100");
BlogManager.Note (id, note);
}
/// <summary>
/// Searchs the file.
/// </summary>
@ -229,7 +245,7 @@ namespace Yavsc.ApiControllers
fo.Delete();
}
return Request.CreateResponse(HttpStatusCode.OK,string.Join("---\n",bodies),new SimpleFormatter("text/plain"));
return Request.CreateResponse(HttpStatusCode.OK,string.Join("\n---\n",bodies),new SimpleFormatter("text/plain"));
}
catch (System.Exception e)