public ActionResult Main() { try { var responseBuilder = new ResponseBuilder(); responseBuilder.AddObject("root", this.AuthenticatedUser, PersonClass.Instance.AngularHome); return JsonSuccess(responseBuilder.Build()); } catch (Exception e) { return JsonError(e.Message); } }
public ActionResult NoTree() { try { var responseBuilder = new ResponseBuilder(); responseBuilder.AddObject("object", this.AuthenticatedUser); responseBuilder.AddCollection("collection", new Organisations(this.AllorsSession).Extent() ); return JsonSuccess(responseBuilder.Build()); } catch (Exception e) { return JsonError(e.Message); } }
public ActionResult Employees() { try { var responseBuilder = new ResponseBuilder(); var organisation = new Organisations(this.AllorsSession).FindBy(Organisations.Meta.Owner, this.AuthenticatedUser); responseBuilder.AddObject("root", organisation, OrganisationClass.Instance.AngularEmployees); return JsonSuccess(responseBuilder.Build()); } catch (Exception e) { return JsonError(e.Message); } }