public async Task<ActionResult> DeleteAssignment(string Id) { if (string.IsNullOrEmpty(Id)) return BadRequest(); var success = await _assignmentManager.DeleteAssignmentAsync(Id); if (success) return Ok(new { id = Id }); else return BadRequest(); }
public async Task<ActionResult> DeleteAssignment(string Id) { if (string.IsNullOrEmpty(Id)) return BadRequest(); var success = await _assignmentManager.DeleteAssignmentAsync(Id); if (success) return Ok(new { id = Id }); else return BadRequest(); }