public async Task <IActionResult> Delete(string id) { await _service.Delete(id); return(Redirect("/script")); }
public async Task <IActionResult> DeleteScript(int id, CancellationToken cancellationToken) { await _service.Delete(id, HttpContext.GetCurrentUserId(), cancellationToken); return(NoContent()); }