public async Task <ActionResult> DetailsAdvance(int?id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            User item = await usersManager.Get(id);

            usersManager.GetRoles(item);
            usersManager.GetDatas(item);

            if (item == null)
            {
                return(HttpNotFound());
            }

            return(View(item));
        }
Exemplo n.º 2
0
        private void LoadListDatas()
        {
            UserMySqlManager userManager = new UserMySqlManager();

            foreach (var item in userManager.GetDatas(LoggedUser).Datas)
            {
                this.dataCollection.Add(item);
            }
        }
Exemplo n.º 3
0
        public void PrintUserDatas(User user)
        {
            ICollection <Data> datas = (userManager.GetDatas(user)).Datas;

            foreach (var item in datas)
            {
                PrintData(item, () => { });
            }
            SelectDataById(datas);
        }