예제 #1
0
 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); }
 }
예제 #2
0
 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); }
 }
예제 #3
0
 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); }
 }