public async Task <IActionResult> DeleteAssignmentModelByLab(int id) { var result = await _assignmentRepository.DeleteByLab(id); if (result.Equals("no content")) { return(NoContent()); } else if (result.Equals("not found")) { return(NotFound()); } else { return(BadRequest()); } }