public async Task <IActionResult> ReviewGroup() { var t = _taskDispatcher.GetNextReview()?.GroupId; if (t == null) { // no more tasks return(View("NoTasks")); } var gid = (int)t; ViewData["Admin"] = false; ViewData["Review"] = true; if (!(await _logic.GroupExists(gid))) { return(View("Error")); } var fields = _logic.GetLastestVersionFields(gid); var types = _logic.GetAllFieldTypesByGroup(gid); return(View("LegacyEditGroup", await FieldsToGroupViewModel(gid, fields, types))); }