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)); }
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)); }
public ActionResult Edit(int id) { var userLogin = userLoginRepository.Get(id); return(View(userLogin)); }