예제 #1
0
        public async Task <JsonResult> DeleteSynthesisProcess(SynthesisProcessViewModel synthesisProcessViewModel)
        {
            try
            {
                await oligoSynthesizerService.DeleteSynthesisProcess(synthesisProcessViewModel.Id);

                User currentUser = oligoSynthesizerService.GetCurrentUser();

                await signalHubContext.Clients.Group(currentUser.Id).addMessage(
                    new SignalMessage
                {
                    SignalType = SignalType.StopOligoSynthesisProcess
                });

                return(JsonSuccess(string.Empty));
            }
            catch (Exception ex)
            {
                return(JsonError());
            }
        }
예제 #2
0
        public async Task <ActionResult> Index()
        {
            SynthesisProcessViewModel currentSynthesisProcessViewModel = await oligoSynthesizerService.GetCurrentSynthesisProcess();

            return(View(currentSynthesisProcessViewModel));
        }