public ActionResult Edit(string userName) { PhongBanBussinessService phongBanBussinessService = new PhongBanBussinessService(); List <User> listUser = phongBanBussinessService.getNguoiDungByUserName(userName); if (listUser == null || listUser.Count == 0) { return(HttpNotFound()); } ViewBag.PhongBan = this.GetPhongBan(listUser[0].IdPhongBan); ViewBag.IdChucVu = this.GetChucVu(listUser[0].IdChucVu, listUser[0].IdPhongBan); return(View(listUser[0])); }