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)); }
private void LoadListDatas() { UserMySqlManager userManager = new UserMySqlManager(); foreach (var item in userManager.GetDatas(LoggedUser).Datas) { this.dataCollection.Add(item); } }
public void PrintUserDatas(User user) { ICollection <Data> datas = (userManager.GetDatas(user)).Datas; foreach (var item in datas) { PrintData(item, () => { }); } SelectDataById(datas); }