public App(HttpContext context) { _user = (User)context.Session[SessionKey]; }
public App() { _user = (User)HttpContext.Current.Session[SessionKey]; AppName = "PB"; }
public JsonResult Update(User user) { _playerService.Update(user); return SuccessResult(user); }
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); }
public BaseController() { AppUser = App.User; }