public IActionResult Index() { ResourceStatusChangeViewModel vm = new ResourceStatusChangeViewModel() { CurrentResourceStatuses = resourceStatusRepository.GetAllResourceStatuses(), ResourceStatusesAvailable = resourceStatusRepository.GetResourceStatuses() }; return(View(vm)); }
public IActionResult AddResourceStatusChange(int resourceID, int resourceStatusID) { resourceStatusRepository.AddResourceStatusChange(resourceID, resourceStatusID, "test", "no comment"); ResourceStatusChangeViewModel vm = new ResourceStatusChangeViewModel() { CurrentResourceStatuses = resourceStatusRepository.GetAllResourceStatuses(), ResourceStatusesAvailable = resourceStatusRepository.GetResourceStatuses() }; return(View(nameof(Index), vm)); }