public async Task<ActionResult> UnpublishAssignment(string Id) { try { await _assignmentManager.UnpublishAssignmentAsync(Id); return Ok(); } catch (Exception ex) { return BadRequest(); } }