public async Task DeleteTaskHistory(TaskHistoryRequestModel taskHistoryRequest) { var thDb = await _taskHistoryRepository.GetByIdAsync(taskHistoryRequest.TaskId); await _taskHistoryRepository.DeleteAsync(thDb); }
public async System.Threading.Tasks.Task DeleteTaskHistoryById(int id) { var taskHistory = await _taskHistoryRepository.GetByIdAsync(id); await _taskHistoryRepository.DeleteAsync(taskHistory); }