public HttpResponseMessage Authenticate([FromBody]AuthenticationAccountModel model)
        {
            return SafeAction(() =>
            {
                IDelightServices service = new DelightServices();
                var id = service.Authenticate(model.Username, model.Password, model.Remember);
                CacheCookieProvider.CreateCookie(id).SetCookie();
                FormsAuthentication.SetAuthCookie(model.Username, model.Remember);

                return Request.CreateResponse(HttpStatusCode.OK, GetUserStateInfo(true, model.Username, id));
            }, model);
        }