public IHttpActionResult FailGoals()
        {
            List <Account> accounts = AccountLogic.GetAll().ToList();

            foreach (Account a in accounts)
            {
                Logic.FailLateGoals(a.Id);
            }
            return(Ok());
        }
 public ActionResult ChangeRole()
 {
     var accounts = accountLogic.GetAll().Values
         .Where(e => e.Login != User.Identity.Name)
         .Select(e => new AccountListModel(e.Login)
         {
             Id = e.Id,
             Role = e.Role
         });
     var model = new AccountRoleAddingModel()
     {
         Accounts = accounts
     };
     return View("AdminPage", model);
 }
Пример #3
0
 public IEnumerable <AspNetUsers> GetAllAccounts()
 {
     return(_accountsLogic.GetAll());
 }
        public ActionResult ViewAllUsers()
        {
            IQueryable <Account> accounts = logic.GetAll();

            return(View(accounts));
        }