Example #1
0
 public App(HttpContext context)
 {
     _user = (User)context.Session[SessionKey];
 }
Example #2
0
 public App()
 {
     _user = (User)HttpContext.Current.Session[SessionKey];
     AppName = "PB";
 }
Example #3
0
 public JsonResult Update(User user)
 {
     _playerService.Update(user);
     return SuccessResult(user);
 }
Example #4
0
        public void CreateUser()
        {
            var guid = Guid.Empty;
            var user = new User() {
                Id = Guid.NewGuid(),
                Email = "*****@*****.**",
                Password = "******",

                //DefaultTeamId = guid,
                Teams = new System.Collections.Generic.List<Team>() {
                    new Team() {
                        Name = "Delta ops",
                        Id = guid

                    },
                    new Team() {
                        Name = "Blind kids",
                        Id = Guid.NewGuid()
                    }
                }
            };

            var repo = new UserRepository();

            repo.Create(user);
        }
Example #5
0
 public BaseController()
 {
     AppUser = App.User;
 }