public async Task <ActionResult> PreviewEditor(Guid id, string variant) { var currentWorkflowItemId = await apiHelper.GetCurrentWorkflowItemId(User.Identity.Name); ViewBag.CurrentWorkflowItemId = currentWorkflowItemId.Item1; var model = repo.CurrentRevision(id, variant).ToBaseModel(); return(View(model)); }
public async Task <IActionResult> Notifications(int since) { var success = false; var message = ""; var count = 0; var id = 0; try { var notifications = await apiHelper.GetCurrentWorkflowItemId(User.Identity.Name, since : since); id = notifications.Item1; count = notifications.Item2; success = true; } catch (Exception ex) { message = ex.Message; log.Log(ex); } return(Json(new { success = success, message = message, id = id, count = count })); }