Exemplo n.º 1
0
        protected override async Task OnInitializedAsync()
        {
            Games = await GameRepository.GetList();

            GameRequests = await GameRequestRepository.GetList();

            Objectives = await ObjectiveRepository.GetList();

            CurrentDate = DateTime.Today;
            GetDates();
        }
Exemplo n.º 2
0
 protected override async Task OnInitializedAsync()
 {
     _user = UserManager.Users.FirstOrDefault(u =>
                                              u.UserName == HttpContextAccessor.HttpContext.User.Identity.Name);
     Objectives = await ObjectiveRepository.GetList();
 }
 public ListResult GetList(int OrganizationID)
 {
     SqlObject.CommandText = StoredProcedures.Objectives.GetAllObjectives;
     SqlObject.Parameters  = new object[] { OrganizationID };
     return(_repository.GetList());
 }