/// <summary> /// Delete an existing Assignment /// </summary> /// <returns></returns> public async Task DeleteAssignmentAsync(Assignment assignment) { await _assignmentRepository.DeleteAsync(assignment); }
public async Task DeleteAsync(Guid ID) { await AssignmentRepository.DeleteAsync(ID); }
public async Task <IActionResult> Delete(int id) { await _assignmentRepository.DeleteAsync(id); return(Ok()); }