コード例 #1
0
        public IActionResult Index()
        {
            ResourceStatusChangeViewModel vm = new ResourceStatusChangeViewModel()
            {
                CurrentResourceStatuses   = resourceStatusRepository.GetAllResourceStatuses(),
                ResourceStatusesAvailable = resourceStatusRepository.GetResourceStatuses()
            };

            return(View(vm));
        }
コード例 #2
0
        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));
        }