public ActionResult Create() { try { ToChucThiViewModel tochucthi = new ToChucThiViewModel() { ListUsers = _userMaster.GetAllUsersActiveList(), ListDeThi = _deThi.GetAllActiveDeThi() }; return(View(tochucthi)); } catch (Exception) { throw; } }
public ActionResult Create() { var c = new List <CauHoiViewModel>(); var item = new CauHoiViewModel(); item.ListDeThi = _iDeThi.GetAllActiveDeThi(); Session[S_LISTDETHI] = c; return(View(item)); }