* avatar, username, city from Google profile

* refactoring
This commit is contained in:
Paul Schneider 2014-12-20 02:11:51 +01:00
commit c7f81699a4
55 changed files with 706 additions and 351 deletions

View file

@ -11,6 +11,12 @@ namespace Yavsc.ApiControllers
// TODO should mostly be an API Controller
public class BasketController : ApiController
{
protected WorkFlowManager wfmgr = null;
protected override void Initialize (System.Web.Http.Controllers.HttpControllerContext controllerContext)
{
base.Initialize (controllerContext);
wfmgr = new WorkFlowManager ();
}
/// <summary>
/// Validates the order.
///
@ -42,7 +48,7 @@ namespace Yavsc.ApiControllers
[Authorize]
public Estimate[] YourEstimates()
{
return WorkFlowManager.GetEstimates (
return wfmgr.GetEstimates (
Membership.GetUser().UserName);
}