class CaseService extends RecordService {

    public Case deleteByRecordId(long recordId) {
        Case deleteCase = caseDao.getCaseById(recordId);
        if (deleteCase != null && !deleteCase.isSynced()) {
            return null;
        }
        caseDao.delete(deleteCase);
        casePhotoDao.deleteByCaseId(recordId);
        return deleteCase;
    }

    public  CaseService(CaseDao caseDao, CasePhotoDao casePhotoDao, IncidentDao incidentDao);

}