public ActionResult Details(int id)
        {
            var client    = clientRepository.Get(id);
            var userLogin = userLoginRepository.Get(id);
            var viewModel = new ClientFormViewModel
            {
                Client    = client,
                UserLogin = userLogin
            };

            return(View(viewModel));
        }
        public ActionResult Details(int id)
        {
            var employee  = employeeRepository.Get(id);
            var userLogin = userLoginRepository.Get(id);
            var viewModel = new EmployeeFormViewModel
            {
                Employee  = employee,
                UserLogin = userLogin
            };

            return(View(viewModel));
        }
예제 #3
0
        public ActionResult Details(int id)
        {
            var labour    = labourRepository.Get(id);
            var userLogin = userLoginRepository.Get(id);
            var viewModel = new LabourFormViewModel
            {
                Labour    = labour,
                UserLogin = userLogin
            };

            return(View(viewModel));
        }
예제 #4
0
        public ActionResult Edit(int id)
        {
            var userLogin = userLoginRepository.Get(id);

            return(View(userLogin));
        }