public ActionResult Sync(SyncRequest syncRequest) { var user = this.AllorsUser ?? Singleton.Instance(this.AllorsSession).Guest; var response = new SyncResponseBuilder(this.AllorsSession, user, syncRequest, Group); return(this.JsonSuccess(response.Build())); }
public Task <SyncResponse> Sync(SyncRequest request) { try { using (var session = this.Database.CreateSession()) { var acls = new WorkspaceAccessControlLists(session.GetUser()); var responseBuilder = new SyncResponseBuilder(session, request, acls); var response = responseBuilder.Build(); return(Task.FromResult(response)); } } catch (Exception e) { this.Logger.LogError(e, "SyncRequest {request}", request); throw; } }