예제 #1
0
        public ActionResult FireEmployee(int id)
        {
            VendorEmployeeModel     vm   = VendorEmployeeManager.GetVendorEmployee(id);
            EmployeeVendorViewModel evvm = new EmployeeVendorViewModel();

            evvm.User   = UserManager.GetUser(vm.UserID);
            evvm.Vendor = VendorManager.GetVendor(vm.VendorID);

            return(View(evvm));
        }
예제 #2
0
        public void Update()
        {
            VendorEmployeeModel vendorEmployee = new VendorEmployeeModel
            {
                ID       = 2,
                VendorID = 2,
                UserID   = 2,
            };

            VendorEmployeeManager.Update(vendorEmployee);

            VendorEmployeeModel newVendorEmployee = VendorEmployeeManager.GetVendorEmployee(2);

            Assert.AreEqual(vendorEmployee.ID, newVendorEmployee.ID);
        }