diff --git a/web/Controllers/BasketController.cs b/web/Controllers/BasketController.cs
index c732d167..93c7bc27 100644
--- a/web/Controllers/BasketController.cs
+++ b/web/Controllers/BasketController.cs
@@ -6,11 +6,14 @@ using System.Web.Security;
using System.Web.Http;
using Yavsc.Model.WorkFlow;
using System.Collections.Specialized;
+using Yavsc.Model.FrontOffice;
namespace Yavsc.ApiControllers
{
///
/// Basket controller.
+ /// Maintains a collection of articles
+ /// qualified with name value pairs
///
public class BasketController : ApiController
{
@@ -27,11 +30,58 @@ namespace Yavsc.ApiControllers
base.Initialize (controllerContext);
wfmgr = new WorkFlowManager ();
}
- [AcceptVerbs("GET")]
- public long Create(string productId , NameValueCollection cmdParams)
+
+ ///
+ /// Create the specified basket item using specified command parameters.
+ ///
+ /// Command parameters.
+ [AcceptVerbs("CREATE")]
+ public long Create(NameValueCollection cmdParams)
+ {
+ throw new NotImplementedException ();
+ }
+
+ ///
+ /// Read the specified basket item.
+ ///
+ /// Itemid.
+ [AcceptVerbs("READ")]
+ Commande Read(long itemid){
+ throw new NotImplementedException ();
+ }
+
+ ///
+ /// Update the specified item parameter using the specified value.
+ ///
+ /// Item identifier.
+ /// Parameter name.
+ /// Value.
+ [AcceptVerbs("UPDATE")]
+ public void Update(long itemid, string param, string value)
{
throw new NotImplementedException ();
}
+ ///
+ /// Delete the specified item.
+ ///
+ /// Item identifier.
+ public void Delete(long itemid)
+ {
+ throw new NotImplementedException ();
+ }
+
+ ///
+ /// Post a file, as attached document to the specified
+ /// Item
+ ///
+ [AcceptVerbs("POST")]
+ public void Post(long itemId)
+ {
+
+ throw new NotImplementedException ();
+ }
+
+
}
}
\ No newline at end of file
diff --git a/web/Controllers/BlogsController.cs b/web/Controllers/BlogsController.cs
index 28e211aa..a73aade5 100644
--- a/web/Controllers/BlogsController.cs
+++ b/web/Controllers/BlogsController.cs
@@ -114,12 +114,16 @@ namespace Yavsc.Controllers
FindBlogEntryFlags sf = FindBlogEntryFlags.MatchUserName;
ViewData ["SiteName"] = sitename;
ViewData ["BlogUser"] = user;
+ // displays invisible items when the logged user is also the author
if (u != null)
if (u.UserName == user)
sf |= FindBlogEntryFlags.MatchInvisible;
+ // find entries
BlogEntryCollection c = BlogManager.FindPost (user, sf, pageIndex, pageSize, out tr);
+ // Get author's meta data
Profile bupr = AccountController.GetProfile (user);
ViewData ["BlogUserProfile"] = bupr;
+ // Inform of listing meta data
ViewData ["BlogTitle"] = bupr.BlogTitle;
ViewData ["Avatar"] = bupr.avatar;
ViewData ["PageIndex"] = pageIndex;
diff --git a/web/Global.asax.cs b/web/Global.asax.cs
index 452cb5bc..c840fb65 100644
--- a/web/Global.asax.cs
+++ b/web/Global.asax.cs
@@ -37,11 +37,16 @@ namespace Yavsc
"Blog",
"Blog/{user}/{title}",
new { controller = "Blogs", action = "Index", user=UrlParameter.Optional, title = UrlParameter.Optional }
- );
+ );
+ routes.MapRoute (
+ "Blogs",
+ "Blogs/{action}/{user}/{title}",
+ new { controller = "Blogs", action = "Index", user=UrlParameter.Optional, title = UrlParameter.Optional }
+ );
routes.MapRoute (
"Default",
- "{controller}/{action}/{id}",
- new { controller = "Home", action = "Index", id=UrlParameter.Optional}
+ "{controller}/{action}/{user}/{title}",
+ new { controller = "Blogs", action = "Index", user=UrlParameter.Optional, title = UrlParameter.Optional }
);
}
///
diff --git a/web/Web.csproj b/web/Web.csproj
index 40c9ba50..383a78b1 100644
--- a/web/Web.csproj
+++ b/web/Web.csproj
@@ -95,12 +95,6 @@
..\packages\PayPalCoreSDK.1.6.0\lib\net451\PayPalCoreSDK.dll
-
- ..\packages\GoogleMapsHelpers.0.1.4.1\lib\4.5\GoogleMapsHelpers.dll
-
-
- ..\packages\MVC.GoogleMaps.1.0.0\lib\net45\Mvc.GoogleMaps.dll
-