static void Main() { #region Implement Services IUnitOfWork unitOfWork = new UnitOfWork(); IBienCheServices bienCheServices = new BienCheServices(unitOfWork); ICapBacServices capBacServices = new CapBacServices(unitOfWork); IChucVuServices chucVuServices = new ChucVuServices(unitOfWork); IHopDongServices hopDongServices = new HopDongServices(unitOfWork); IKhenThuongServices khenThuongServices = new KhenThuongServices(unitOfWork); IKyLuatServices kyLuatServices = new KyLuatServices(unitOfWork); ILoaiHopDongServices loaiHopDongServices = new LoaiHopDongServices(unitOfWork); INhanVienServices nhanVienServices = new NhanVienServices(unitOfWork); IPhongBanServices phongBanServices = new PhongBanServices(unitOfWork); IThanhPhoServices thanhPhoServices = new ThanhPhoServices(unitOfWork); IThongTinGiaDinhServices thongTinGiaDinhServices = new ThongTinGiaDinhServices(unitOfWork); IThongTinServices thongTinServices = new ThongTinServices(unitOfWork); IThongTinTrinhDoServices thongTinTrinhDoServices = new ThongTinTrinhDoServices(unitOfWork); ITrinhDoServices trinhDoServices = new TrinhDoServices(unitOfWork); #endregion Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); Application.Run(new Dang_nhap(bienCheServices, capBacServices, chucVuServices, hopDongServices, khenThuongServices, kyLuatServices, loaiHopDongServices, nhanVienServices, phongBanServices, thanhPhoServices, thongTinGiaDinhServices, thongTinServices, thongTinTrinhDoServices, trinhDoServices)); }
// // GET: /Account/Manage public ActionResult Manage() { if (!IsLogged()) { return(BackToLogin()); } DonViServices donViSer = new DonViServices(); PhongBanServices phongBanSer = new PhongBanServices(); PhongBanServices CongTruonger = new PhongBanServices(); DanhmucServices chucdanhser = new DanhmucServices(); ManageUserViewModel model = PrepareManageUserViewModel(CongTruonger.SelectRows2(new PhongBanModels()), phongBanSer.SelectRows(new PhongBanModels()), donViSer.SelectRows(new DonviModels()), chucdanhser.SelectRows_chucvu(new ChucDanhModels())); return(View(model)); }