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()); } }
public async Task <ActionResult> Index() { SynthesisProcessViewModel currentSynthesisProcessViewModel = await oligoSynthesizerService.GetCurrentSynthesisProcess(); return(View(currentSynthesisProcessViewModel)); }