public ActionResult Raise() { var users = _userRepository.GetAll(); var taskTypes = _taskTypeRepository.GetAll(); var viewModel = TaskRaiseEditViewModelMapper.MapToViewModel(users, taskTypes); return(View("RaiseEdit", viewModel)); }
public ActionResult Edit(Guid taskId) { var task = _taskRepository.GetById(taskId); var users = _userRepository.GetAll(); var taskTypes = _taskTypeRepository.GetAll(); var viewModel = TaskRaiseEditViewModelMapper.MapToViewModel(task, users, taskTypes); return(View("RaiseEdit", viewModel)); }